public class recordpage extends JDialog{
private Container contain;
private JLabel Nick, Pass, ConfimPass, Mail;
private JTextField textNick, textMail;
private JPasswordField textPass, textConfirmPass;
private JButton register;
public recordpage (){
super();
Container contain =getContentPane();
contain.setLayout(new FlowLayout());
JLabel Nick =new JLabel("Nick ");
JLabel Pass =new JLabel ("password ");
JLabel ConfimPass new JLabel ("Confirm your password");
JLabel Mail =new JLabel ("your email: ");
JTextField textNick =new JTextField ("", 10);
JPasswordField textPass =new JPasswordField("", 10);
JPasswordField textConfirmPass=new JPasswordField("", 10);
JTextField textMail =new JTextField("", 10);
JButton register=new JButton ("Log in");
contain.add(Nick);
contain.add(textNick);
contain.add(Pass);
contain.add(textPass);
contain.add(ConfirmPass);
contain.add(textConfirmPass);
contain.add(Mail);
contain.add(textMail);
contain.add(register);
this.setTitle("Register");
this.setModal(true);
this.setLocation(200, 150);
this.setSize(new Dimension(300, 180));
this.setVisible(true);
registrar.addActionListener (
new ActionListener(){
public void actionPerformed(ActionEvent ae){
dispose();
}
}
);
}
}