1 лаба после 2 2.0

This commit is contained in:
Nastya_Kozlova 2023-12-24 01:19:03 +04:00
parent 8e4c174fcb
commit 0fc01401f2

View File

@ -37,7 +37,7 @@ public class FrameAirFighter extends JFrame {
downButton.addActionListener(this::buttonMoveClick);
//component addition
setLayout(new BorderLayout());
JPanel panelBattleship = new JPanel(new BorderLayout());
JPanel panelAirFighter = new JPanel(new BorderLayout());
JPanel createPanel = new JPanel(new BorderLayout());
createPanel.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
createPanel.add(createButton, BorderLayout.SOUTH);
@ -63,9 +63,9 @@ public class FrameAirFighter extends JFrame {
constraints.gridy = 1;
movementPanel.add(downButton, constraints);
add(pictureBox);
panelBattleship.add(rightPanel, BorderLayout.EAST);
panelBattleship.add(createPanel, BorderLayout.WEST);
add(panelBattleship,BorderLayout.CENTER);
panelAirFighter.add(rightPanel, BorderLayout.EAST);
panelAirFighter.add(createPanel, BorderLayout.WEST);
add(panelAirFighter,BorderLayout.CENTER);
setVisible(true);
}
private void buttonCreateClick() {