Pausing Threads From Events

From: Bryan R. Meyer (bryan.r.meyer_at_verizon.net)
Date: 04/27/04


Date: 26 Apr 2004 19:39:46 -0700

Hello Everyone,

Hopefully, someone has some pointers for my problem. Suppose I have
an applet which starts a new thread A. The applet implements
MouseListener and when the user puts the mouse over the applet, a
MouseEvent occurs. When a user generates this MouseEntered event,
thread A is to be paused. Unfortunately, the currently executing
thread is AWT-EventQueue. How can I pass that event to thread A so
that I can pause the thread?

Thanks for any suggestions. I haven't been able to find much on this
subject.

Bryan



Relevant Pages

  • Pausing Threads From Events
    ... someone has some pointers for my problem. ... an applet which starts a new thread A. The applet implements ... MouseListener and when the user puts the mouse over the applet, ... When a user generates this MouseEntered event, ...
    (comp.lang.java.programmer)
  • Re: Pausing Threads From Events
    ... Bryan R. Meyer wrote: ... > an applet which starts a new thread A. The applet implements ... When a user generates this MouseEntered event, ... start.addActionListener(new ActionListener() ...
    (comp.lang.java.programmer)
  • Re: Pausing Threads From Events
    ... Bryan R. Meyer wrote: ... > an applet which starts a new thread A. The applet implements ... When a user generates this MouseEntered event, ... start.addActionListener(new ActionListener() ...
    (comp.lang.java.help)
  • Re: Using implements Runnable and MouseListener
    ... > and also an applet which detects left, ... > I can detect the mouse actions as well as do some timing. ... > implements Runnable and MouseListener in the same Java applet? ...
    (comp.lang.java)
  • Re: Applet and streaming
    ... >I'm looking for ways to stream video (.avi) using an applet. ... >some pointers? ... Maybe the Java Media Framework? ...
    (comp.lang.java.programmer)