I'm using the Swing UI toolkit in Java, and I want to use the
Graphics class to draw images and grids in a control. Which is the most appropriate control for this?
A cursory bit of searching with Google suggests that you probably want to use JPanel for this, although it's possible you could make use of any control since it looks like the technique you'll want to use is to subclass the control and override a method (the
JPanel appears to be a very basic empty control and so is probably the ideal choice for this.