Originally posted by Michael Dunn: what happened when you looked up the available methods in the Graphics class?
Gotta love that Socratic Method: "and what would happen if you looked into your microscope?"
There is no emoticon for what I am feeling!
posted 13 years ago
More seriously, if you want to do some drawing the typical approach is to create your own component class by subclassing JComponent or JPanel, overriding paintComponent and doing your drawing there. Add this component to your GUI like any other component:If you haven't already, take a look at Sun's graphics tutorial: