Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main(String... args) {
- JFrame f = new JFrame("FUCKING FRAME");
- f.setDefaultCloseOperation(EXIT_ON_CLOSE);
- JButton createAccount=new JButton("Create");
- JTextField firstName=new JTextField();
- JTextField lastName=new JTextField();
- JTextField userName=new JTextField();
- JTextField password=new JTextField();
- Container cp = f.getContentPane();
- cp.setLayout(new GridLayout(8,2));
- cp.add(firstName);
- cp.add(lastName);
- cp.add(userName);
- cp.add(password);
- cp.add(createAccount);
- cp.setPreferredSize(new Dimension(400, 500));
- f.pack();
- f.setVisible(true);
- }
Add Comment
Please, Sign In to add comment