Hi,

I would like to know if there is any way to run a thread inside an
"actionPerformed" event. The point is to return the control after the button
is pressed while the created thread is doing a background job. The applet
runs the thread but doesn't return the control, and "invokeLater" is not
available inside the event.

Example:

jButton1ActionPerformed (java.awt.event.ActionEvent evt)

        Runnable runner = new Runnable() {
          public void run() {
              try {
                    // HEAVY BACKGROUND PROCESSING
                } catch(Exception e){
                        System.out.println(e);
                }
          }

        //RETURN FASTLY CONTROL

}


Thanks

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to