Results 1 to 4 of 4

Thread: Need applet help..

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    1

    Need applet help..

    Here is the thing i want to do.

    open an applet - load a text file into a Jlist. The text file will contain html web site links. The applet has to go open all the links inside the list and wait 30 seconds or so between each web page surf.

    I know how to load a txt file and get a list in. (FileReader -> get an array of strings-> enter all of em into the Jlist with loop).

    I, however dont know how to open the links into a webpage ( maybe a Popup box or something like a webpage area inside the Applet). Also i dont know how to get the thing to wait 30 seconds.

    also need start/stop/Load list buttons. and a text fields for current link and time interval.

    Thanks
    Arjun

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: Need applet help..

    I highly doubt you would be able to access the local file system via an applet. If you want to wait for a specific amount of time you could use the static method sleep(long millis) which can be found within the java.lang.Thread class.

  3. #3
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Need applet help..

    Usage: Thread.sleep(t);

    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  4. #4

Posting Permissions

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



Click Here to Expand Forum to Full Width