import javax.swing.JButton; //*1 Import the classes you need public class Button extends JButton { //*2 Will want separate class like this in future public Button (String label) { //*3 Our own constructor setText (label); //*3 } }