home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / java / AWTButton.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-11-28  |  471 b   |  10 lines

  1. import java.applet.Applet;
  2. import java.awt.Button;
  3. import java.awt.Container;
  4.  
  5. public class AWTButton extends Applet {
  6.    public void init() {
  7.       ((Container)this).add(new Button("This is an AWT Button"));
  8.    }
  9. }
  10.