Advertisement
MacSG

Main.java

Mar 4th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. package editor;
  2.  
  3. import java.awt.GridLayout;
  4.  
  5. import javax.swing.JFrame;
  6.  
  7. public class Main {
  8.        
  9.         static Frame f;
  10.        
  11.         public static void main(String[] args){
  12.                 f = new Frame();
  13.                 f.setTitle("Text Editor");
  14.                 f.setSize(1024,768);
  15.                 f.setLocationRelativeTo(null);
  16.                 f.setVisible(true);
  17.                 f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  18.         }
  19.        
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement