Methods Summary |
---|
void | addItem(java.lang.String newWord)
System.out.println(newWord);
buffer.append(newWord);
repaint();
|
public void | destroy()
addItem("preparing for unloading...");
|
public void | init()
addMouseListener(this);
buffer = new StringBuffer();
addItem("initializing... ");
|
public void | mouseClicked(java.awt.event.MouseEvent event)
addItem("click!... ");
|
public void | mouseEntered(java.awt.event.MouseEvent event)
|
public void | mouseExited(java.awt.event.MouseEvent event)
|
public void | mousePressed(java.awt.event.MouseEvent event)
|
public void | mouseReleased(java.awt.event.MouseEvent event)
|
public void | paint(java.awt.Graphics g)
//Draw a Rectangle around the applet's display area.
g.drawRect(0, 0,
getSize().width - 1,
getSize().height - 1);
//Draw the current string inside the rectangle.
g.drawString(buffer.toString(), 5, 15);
|
public void | start()
addItem("starting... ");
|
public void | stop()
addItem("stopping... ");
|