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

  1. import com.sun.java.swing.JApplet;
  2. import com.sun.java.swing.JButton;
  3.  
  4. public class SwingButton extends JApplet {
  5.    public void init() {
  6.       ((JApplet)this).getContentPane().add(new JButton("This is a Swing Button"));
  7.    }
  8. }
  9.