Either one will work. (directly on applet's paint() or on a new canvas)
> -----Original Message-----
> From: Rob Love [SMTP:]
> Posted At: Monday, July 07, 2003 4:41 PM
> Posted To: comp.lang.java.programmer
> Conversation: applet vs. canvas in applet
> Subject: applet vs. canvas in applet
>
> Hey,
>
> I want to write some data onto my applet. I need to have a thread
> that
> reads data from a socket and prints it to the applet. I have the
> socket and
> the formatting all done, but I don't know if I should use a canvas or
> just
> paint to the applet directly. I can use the applet's run() method and
> just
> paint to it's graphics object. Is there some reason not to directly
> draw
> onto an applet?
>
> Thanks,
>
> //Rob
>
|