Results 1 to 3 of 3
  1. #1
    simplo is offline Member
    Join Date
    Aug 2010
    Posts
    14
    Rep Power
    0

    Default Applet and stop() method

    Hi guys ,
    i need some help abbout jApplet and stop() method ,and GUI blocking.

    1: I wrote a code of some applet that communicate with a server : ( my applet connect to one server an receive messages and display for the user ) . The problem is : each time i switched to another the page , the applet donīt working more (no message are receive more) , i need to have my applet working without interruption only when i click to disconnect , the applet have to be quiet . I read somewhere , each Time you switched in another window , the stop() method are calling .

    2: when i send a command to my server by clicking on a Button, the GUI block.
    i have the same problem in the passt by running my applet in Netbeans , but i solved it using Thread . now the same problem occur when i run my applet into a Browser (IE , mozilla ...)

    any idea how to solve my problem ?

    Thanks for you reply and sorry for my poor english

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    cross-post: sun thread

    Please notify all of any cross-posts.

    For your second question, I believe that the answer is the same -- use a background thread such as a SwingWorker.

  3. #3
    gafa's Avatar
    gafa is offline Senior Member
    Join Date
    Jun 2010
    Posts
    107
    Rep Power
    0

    Default

    Yummy

    I guess you can simply fill applet stop method with server disconnection code

Similar Threads

  1. Use stop button to stop moving (stop timers) on JPanel
    By mneskovic in forum New To Java
    Replies: 3
    Last Post: 07-23-2010, 12:50 PM
  2. How to stop executing method
    By moamen in forum New To Java
    Replies: 3
    Last Post: 12-31-2009, 10:33 AM
  3. Thread Stop() method not working
    By charan reddy in forum Threads and Synchronization
    Replies: 18
    Last Post: 10-03-2009, 03:01 PM
  4. Replies: 4
    Last Post: 02-22-2009, 06:31 AM
  5. [SOLVED] calling javascript from applet method
    By shwein in forum Java Applets
    Replies: 5
    Last Post: 11-01-2008, 04:45 PM

Posting Permissions

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