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. Advertisements

  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. Advertisements

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. Blah Blah
    Replies:
    0
    Views:
    1,552
    Blah Blah
    Aug 13, 2003
  2. Jade
    Replies:
    3
    Views:
    1,104
    Roedy Green
    Aug 14, 2003
  3. lltaylor

    Applet Canvas / Panel Problem

    lltaylor, May 6, 2004, in forum: Java
    Replies:
    6
    Views:
    2,889
    Andrew Thompson
    May 7, 2004
  4. Askari
    Replies:
    2
    Views:
    1,019
    Askari
    Aug 30, 2004
  5. PhilC
    Replies:
    2
    Views:
    1,144
    PhilC
    Oct 25, 2004
  6. Lew

    Re: Applet ( canvas )

    Lew, Mar 13, 2009, in forum: Java
    Replies:
    2
    Views:
    532
    Andrew Thompson
    Mar 20, 2009
  7. Roedy Green

    APPLET ( CANVAS )

    Roedy Green, Mar 13, 2009, in forum: Java
    Replies:
    0
    Views:
    491
    Roedy Green
    Mar 13, 2009
  8. Replies:
    10
    Views:
    571
    Rick Johnson
    Mar 15, 2013
Loading...