import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JFrame;

public class Driver
{
     public static final int WIDTH_FRAME = 300;
     public static final int HEIGHT_FRAME = 300;
     public static final int X_COORD_BUTTON = 100;
     public static final int Y_COORD_BUTTON = 100;
     public static final int WIDTH_BUTTON = 100;
     public static final int HEIGHT_BUTTON = 20;
     public static final int X_COORD_LABEL = 50;
     public static final int Y_COORD_LABEL = 50;
     public static final int WIDTH_LABEL = 100;
     public static final int HEIGHT_LABEL = 20;
     public static void main (String [] args)
     {
           JFrame aFrame = new JFrame ();
           aFrame.setLayout(null);
           aFrame.setSize (WIDTH_FRAME,HEIGHT_FRAME);

           JButton aButton = new JButton("Press me.");
           aButton.setBounds(X_COORD_BUTTON,Y_COORD_BUTTON,WIDTH_BUTTON,HEIGHT_BUTTON);

           JLabel aLabel = new JLabel ("Simple label");
           aLabel.setBounds(X_COORD_LABEL,Y_COORD_LABEL,WIDTH_LABEL,HEIGHT_LABEL);

           aFrame.add(aButton);
           aFrame.add(aLabel);
           aFrame.setVisible(true);
     }
}

