Methods Summary |
---|
public synchronized java.lang.String | getString()
return theString;
|
public boolean | mouseDown(java.awt.Event e, int x, int y)
if (e.modifiers == Event.META_MASK) {
setString ("Right Button Pressed");
} else if (e.modifiers == Event.ALT_MASK) {
setString ("Middle Button Pressed");
} else {
setString ("Left Button Pressed");
}
repaint ();
return true;
|
public boolean | mouseUp(java.awt.Event e, int x, int y)
setString ("Press a Mouse Key");
repaint ();
return true;
|
public synchronized void | paint(java.awt.Graphics g)
g.drawString (theString, 20, 20);
|
public synchronized void | setString(java.lang.String s)
theString = s;
|