Zhelovanov D.Y. LabWork03 #3

Closed
Zhelovanov_Dmitrii wants to merge 10 commits from LabWork03 into LabWork02
Showing only changes of commit 1d7e6e80a0 - Show all commits

View File

@ -89,9 +89,9 @@ public class FormMapWithSetBattleship extends JComponent {
e.printStackTrace();
}
JButton deleteAirbusButton = new JButton("Удалить корабль");
JButton deleteBattleshipButton = new JButton("Удалить корабль");
JFormattedTextField finalMaskedTextFieldPosition = maskedTextFieldPosition;
deleteAirbusButton.addActionListener(e -> {
deleteBattleshipButton.addActionListener(e -> {
if ((String)mapSelectComboBox.getSelectedItem() == null) {
return;
}
@ -108,7 +108,7 @@ public class FormMapWithSetBattleship extends JComponent {
JOptionPane.showMessageDialog(form, "Объект не удален", "Удаление", JOptionPane.OK_CANCEL_OPTION);
}
});
statusPanel.add(deleteAirbusButton);
statusPanel.add(deleteBattleshipButton);
JButton showStorageButton = new JButton("Хранилище");
showStorageButton.addActionListener(e -> {