Hello all,
Long time reader, but first time poster.
Anyhow, I have a question for you all. I am working with internal frames. I want to have the big desktop frame contain the items drawn by a Canvas. I can successfully get the Canvas to draw when I use AWT. To clarify my problem, here is what I am doing using AWT for drawing of the Canvas in a frame (pseudo-code):
//----------------
Canvas s = new Canvas
Frame f = new Frame
f.add(s) //add the Canvas to the Frame
while(true) s.update(…)
//-----------------
This works for me, but since I would like to add internal frames, I need to start using JDesktopPane. How would I add the Canvas to the main JDesktopPane and have it constantly call update on the Canvas inside of it? And when I get that up and running, after I add stuff to internal frames, how can I get it to constantly redraw itself?
Thanks in advance!!
-Mike
