Hey,
I have a canvas in a applet that I want to draw on. My problem is that I
don't know where to call createImage() to get my back buffer. I tried it in
the constructor, but I keep getting null returned to me.
Any suggestions?
Thanks,
//Rob
|
|
0
|
|
|
|
Reply
|
robert.w.love (4)
|
7/2/2003 4:49:58 PM |
|
"Rob Love" <robert.w.love@intel.com>, Wed, 02 Jul 2003 09:49:58 -0700:
> Hey,
Hi Rob,
> I have a canvas in a applet that I want to draw on. My problem is that I
> don't know where to call createImage() to get my back buffer. I tried it in
> the constructor, but I keep getting null returned to me.
> Any suggestions?
> Thanks,
> //Rob
You have to make sure the component is 'realised' and displayable, I used
to do this in the paint() method, but found some better suggestions over
here:
http://forum.java.sun.com/thread.jsp?forum=5&thread=367212&message=1557275
|
|
0
|
|
|
|
Reply
|
bhun (6)
|
7/2/2003 7:34:25 PM
|
|