FileDocCategorySizeDatePackage
ClockLabel.javaAPI DocExample491Thu Oct 24 20:14:28 BST 2002None

ClockLabel

public class ClockLabel extends JLabel implements ActionListener

Fields Summary
Constructors Summary
public ClockLabel()

    super("" + new Date());
    Timer t = new Timer(1000, this);
    t.start();
  
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent ae)

    setText((new Date()).toString());