Professional Documents
Culture Documents
addWindowListener(new WindowAdapter() {
@Override
System.exit(0);
});
createSystem();
mainSystem.setBackground(GRAY);
mainSystem.setLayout(new FlowLayout(FlowLayout.CENTER));
mainSystem.add(button[i]);
}
Button bt2 = new Button("2");
bt2.setBackground(YELLOW);
bt3.setBackground(GREEN);
bt4.setBackground(GRAY);
add(mainSystem);
new Menu_Enter_Name_YesNo_Dialog().setVisible(true);