applet vs. canvas in applet

Discussion in 'Java' started by Rob Love, Jul 7, 2003.

  1. Rob Love

    Rob Love Guest

    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
     
    Rob Love, Jul 7, 2003
    #1
    1. Advertising

  2. Rob Love

    Liu, Chunyen Guest

    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
    >
     
    Liu, Chunyen, Jul 7, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lltaylor

    Applet Canvas / Panel Problem

    lltaylor, May 6, 2004, in forum: Java
    Replies:
    6
    Views:
    2,723
    Andrew Thompson
    May 7, 2004
  2. Askari
    Replies:
    2
    Views:
    725
    Askari
    Aug 30, 2004
  3. PhilC
    Replies:
    2
    Views:
    907
    PhilC
    Oct 25, 2004
  4. Lew

    Re: Applet ( canvas )

    Lew, Mar 13, 2009, in forum: Java
    Replies:
    2
    Views:
    424
    Andrew Thompson
    Mar 20, 2009
  5. Replies:
    10
    Views:
    278
    Rick Johnson
    Mar 15, 2013
Loading...

Share This Page