Wednesday, December 8, 2010

(1) OpenJFrame

JFRAME:


import javax.swing.JFrame;


public class FinalScienceProject extends JFrame {

    public FinalScienceProject() {
    add(new FinalScienceProjectPart2());

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(500*2, 650); (MAY CHANGE LATER --> SET TO DEFALT)
        setLocationRelativeTo(null);
        setTitle("Science Project");
        setResizable(true);
        setVisible(true);
    }
public static void main(String[] argv){
FinalScienceProject i = new FinalScienceProject();
}

}

Part2 --> FinalScienceProjectPart2()


No comments:

Post a Comment