Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Posts
    1

    Exclamation Unanswered: applets and threads

    how can I handle threads with applets of java

  2. #2
    Join Date
    Feb 2003
    Location
    South Africa - Gauteng
    Posts
    1

    Arrow

    According to me you use it the same way as in an Application..

    You can create a thread in on of two ways ...

    * Extend java.lang.Thread
    You can then use your class in the following wa :

    MyThread mt = new MyThread();
    mt.start();

    * Declare a class that implements the Runnable interface :

    Thread runner;
    class MyThread implements Runnable {
    public void run() {
    if (runner == null) {
    runner = new Thread(this);
    runner.start();
    }
    }
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •