home *** CD-ROM | disk | FTP | other *** search
- import com.sun.java.swing.JApplet;
- import com.sun.java.swing.JButton;
- import java.awt.Container;
-
- public class InnerButton extends JApplet {
- public void init() {
- JButton var1 = new JButton("This is a Swing Button");
- ((JApplet)this).getContentPane().add(var1);
- ((Container)var1).add(new JButton("Inner button"));
- }
- }
-