Guest User

Untitled

a guest
Dec 9th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. public static void Main(String... args) {
  2.        
  3.         JFrame f = new JFrame("FUCKING FRAME");
  4.  
  5.         f.setDefaultCloseOperation(EXIT_ON_CLOSE);
  6.        
  7.         JButton createAccount=new JButton("Create");
  8.         JTextField firstName=new JTextField();
  9.         JTextField lastName=new JTextField();
  10.         JTextField userName=new JTextField();
  11.         JTextField password=new JTextField();
  12.        
  13.         Container cp = f.getContentPane();
  14.         cp.setLayout(new GridLayout(8,2));
  15.         cp.add(firstName);
  16.         cp.add(lastName);
  17.         cp.add(userName);
  18.         cp.add(password);
  19.         cp.add(createAccount);
  20.        
  21.         cp.setPreferredSize(new Dimension(400, 500));
  22.         f.pack();
  23.         f.setVisible(true);
  24.        
  25.     }
Add Comment
Please, Sign In to add comment