Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package something; //Package name replaces "something"
- import javax.swing.JFrame; //So the JFrame can be resolved to a type
- public class whatever { //Class name replaces "whatever"
- public static void main(String [] args) {
- JFrame frame = new JFrame("My JFrame");
- frame.setVisible(true);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(400, 200); //Size can be adjusted
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement