Don't use Canvas... it's an AWT component, so it would hang on top of the other Swing components in your application.
Just like everyone else said... The
best way to do this would be sub-class JPanel and do the painting in it's paintComponent() method...
You could also grab the graphics context of the panel using panel.getGraphics(), and then draw to that graphics context... however, you'll have to do this in a
thread to keep it consistantly updating, and there is no guarantee that it's going to be drawn every time the frame repaints... so it isn't a good solution...
[ January 06, 2003: Message edited by: Nathan Pruett ]