Advertisement
fel486

Basic JFrame

Mar 21st, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.     // Fel486
  2.  
  3.     import javax.swing.JFrame; // Importing JFrame 
  4.  
  5.     public static JFrame janela = new JFrame("");
  6.    
  7.     public static final int WIDTH = 500;
  8.     public static final int HEIGHT = 500;
  9.    
  10.     public static void main(String[] args)
  11.     {
  12.         janela.setSize(WIDTH, HEIGHT);
  13.         janela.setVisible(true);
  14.         janela.setResizable(false);
  15.         janela.setLocationRelativeTo(null);
  16.         janela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  17.        
  18.        
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement