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
|
|
0
|
|
|
|
Reply
|
robert.w.love (4)
|
7/7/2003 9:41:16 PM |
|
Either one will work. (directly on applet's paint() or on a new canvas)
> -----Original Message-----
> From: Rob Love [SMTP:robert.w.love@intel.com]
> 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
>
|
|
0
|
|
|
|
Reply
|
Chunyen.Liu (10)
|
7/7/2003 10:07:10 PM
|
|