Курсовая работа: Объектно-ориентированное программирование
setIconImage(img);
setTitle("CenteredFrame");
ButtonPanel11 panel = new ButtonPanel11();
add(panel);
}
}
class ButtonPanel11 extends JPanel
{
public ButtonPanel11()
{
JButton BeginButton = new JButton("Begin");
JButton ReButton = new JButton("Registration");
Password = new JPasswordField("",6);
login = new JTextField(15);
label1 = new JLabel("Please,input your name");
label2 = new JLabel("Please,input your password");
JPanel panel = new JPanel();
panel.setLayout(new GridLayout(2,2));
panel.add (label1);
panel.add (login);
panel.add (label2);
panel.add (Password);
add(panel,BorderLayout.CENTER);
JPanel panel1 = new JPanel();
panel1.add(BeginButton);
panel1.add (ReButton);
add(panel1,BorderLayout.SOUTH);
ColorAction11 BeginAction = new ColorAction11(2);
ColorAction11 ReAction = new ColorAction11(3);