There are too many tutorials on java graphics to list. Help yourself to your favorite search engine.
Look into AWT and Swing