///
This commit is contained in:
parent
f5247f6ce8
commit
5f4611908d
@ -23,7 +23,7 @@ public class FormAirplaneWithRadar {
|
||||
}
|
||||
|
||||
public FormAirplaneWithRadar(){
|
||||
JFrame MonorailFrame =new JFrame ();
|
||||
JFrame AirplaneFrame =new JFrame ();
|
||||
JButton buttonCreate = new JButton("Создать");
|
||||
JButton buttonCreateLocomotive = new JButton("Создать самолет с радаром");
|
||||
JButton buttonStep = new JButton("Шаг");
|
||||
@ -151,9 +151,9 @@ public class FormAirplaneWithRadar {
|
||||
}
|
||||
});
|
||||
|
||||
MonorailFrame.setSize (900, 500);
|
||||
MonorailFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
|
||||
MonorailFrame.setLayout(null);
|
||||
AirplaneFrame.setSize (900, 500);
|
||||
AirplaneFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
|
||||
AirplaneFrame.setLayout(null);
|
||||
canv = new Canvas();
|
||||
canv.setSize(pictureBoxWidth, pictureBoxHeight);
|
||||
buttonCreate.setBounds(198, 401, 180, 40);
|
||||
@ -164,16 +164,16 @@ public class FormAirplaneWithRadar {
|
||||
DownButton.setBounds(804,411,30,30);
|
||||
comboBoxStrategy.setBounds(719,12,151,28);
|
||||
buttonStep.setBounds(768, 46, 94, 29);
|
||||
MonorailFrame.add(canv);
|
||||
MonorailFrame.add(buttonCreate);
|
||||
MonorailFrame.add(buttonCreateLocomotive);
|
||||
MonorailFrame.add(UpButton);
|
||||
MonorailFrame.add(DownButton);
|
||||
MonorailFrame.add(LeftButton);
|
||||
MonorailFrame.add(RightButton);
|
||||
MonorailFrame.add(comboBoxStrategy);
|
||||
MonorailFrame.add(buttonStep);
|
||||
MonorailFrame.setVisible(true);
|
||||
AirplaneFrame.add(canv);
|
||||
AirplaneFrame.add(buttonCreate);
|
||||
AirplaneFrame.add(buttonCreateLocomotive);
|
||||
AirplaneFrame.add(UpButton);
|
||||
AirplaneFrame.add(DownButton);
|
||||
AirplaneFrame.add(LeftButton);
|
||||
AirplaneFrame.add(RightButton);
|
||||
AirplaneFrame.add(comboBoxStrategy);
|
||||
AirplaneFrame.add(buttonStep);
|
||||
AirplaneFrame.setVisible(true);
|
||||
}
|
||||
}
|
||||
class Canvas extends JComponent{
|
||||
|
Loading…
Reference in New Issue
Block a user