Methods Summary |
---|
public void | init()
System.out.println("Mover3 starting");
super.init();
addMouseListener(this);
System.out.println("Mover3 initted");
|
public void | mouseClicked(java.awt.event.MouseEvent e)
// nothing
|
public void | mouseEntered(java.awt.event.MouseEvent $1)
// nothing
|
public void | mouseExited(java.awt.event.MouseEvent $1)
// nothing
|
public synchronized void | mousePressed(java.awt.event.MouseEvent e)
e.consume();
System.out.println("mousePressed");
threadSuspended = !threadSuspended;
if (!threadSuspended)
notifyAll();
|
public void | mouseReleased(java.awt.event.MouseEvent e)
// nothing
|
public void | run()
int w = getSize().width;
while (!done) {
try {
Thread.sleep(interval);
synchronized(this) {
while (threadSuspended)
wait();
}
} catch (InterruptedException canthappen) {
// Do nothing
}
if (offset++ > w)
offset = 0;
repaint();
}
|