Изменил(а) на 'FormMapWithSetBattleship.java'
This commit is contained in:
parent
405904860a
commit
1d7e6e80a0
@ -89,9 +89,9 @@ public class FormMapWithSetBattleship extends JComponent {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
JButton deleteAirbusButton = new JButton("Удалить корабль");
|
JButton deleteBattleshipButton = new JButton("Удалить корабль");
|
||||||
JFormattedTextField finalMaskedTextFieldPosition = maskedTextFieldPosition;
|
JFormattedTextField finalMaskedTextFieldPosition = maskedTextFieldPosition;
|
||||||
deleteAirbusButton.addActionListener(e -> {
|
deleteBattleshipButton.addActionListener(e -> {
|
||||||
if ((String)mapSelectComboBox.getSelectedItem() == null) {
|
if ((String)mapSelectComboBox.getSelectedItem() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ public class FormMapWithSetBattleship extends JComponent {
|
|||||||
JOptionPane.showMessageDialog(form, "Объект не удален", "Удаление", JOptionPane.OK_CANCEL_OPTION);
|
JOptionPane.showMessageDialog(form, "Объект не удален", "Удаление", JOptionPane.OK_CANCEL_OPTION);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
statusPanel.add(deleteAirbusButton);
|
statusPanel.add(deleteBattleshipButton);
|
||||||
JButton showStorageButton = new JButton("Хранилище");
|
JButton showStorageButton = new JButton("Хранилище");
|
||||||
showStorageButton.addActionListener(e -> {
|
showStorageButton.addActionListener(e -> {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user