Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Create extends Login {
- static JPanel subScreen = new JPanel();
- JTextField newUsername = new JTextField();
- JTextField newPassword = new JTextField();
- JTextField confirmPass = new JTextField();
- JLabel cUsername = new JLabel("Username: ");
- JLabel cPassword = new JLabel("Password");
- JLabel conPassword = new JLabel("Confirm password");
- JButton create = new JButton("Create new account");
- JButton cancel = new JButton("Cancel");
- public Create() {
- subScreen.setLayout(null);
- newUsername.setSize(300, 20);
- newUsername.setLocation(320, 95);
- newUsername.setFont(answers);
- newPassword.setSize(300, 20);
- newPassword.setLocation(320, 195);
- newPassword.setFont(answers);
- cUsername.setSize(200, 100);
- cUsername.setLocation(200, 150);
- cUsername.setFont(font);
- conPassword.setSize(200, 100);
- conPassword.setLocation(200, 200);
- conPassword.setFont(font);
- subScreen.add(newUsername);
- subScreen.add(newPassword);
- subScreen.add(cUsername);
- subScreen.add(conPassword);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement