Inheritance and GUIs

JFrame – Making a Window

public static void main (String args[]) {

     JFrame jf = new JFrame (‘This is a test frame!”);

     jf.setSize (800,600);

     jf.setVisible (true);

}

Result à frame with size 800x600 pixels