Fixes
This commit is contained in:
parent
5c582f70b3
commit
ccab9cd620
@ -155,12 +155,17 @@ public class FormMapWithSetArtilleries extends JFrame {
|
|||||||
});
|
});
|
||||||
|
|
||||||
buttonShowDeleted.addActionListener(e -> {
|
buttonShowDeleted.addActionListener(e -> {
|
||||||
FormArtillery dialog = new FormArtillery(deletedObjects.empty() ? null : ((DrawingObjectArtillery)deletedObjects.pop()).getArtillery());
|
if (!deletedObjects.empty()) {
|
||||||
dialog.setSize(800, 500);
|
DrawingObjectArtillery deleted = (DrawingObjectArtillery) deletedObjects.pop();
|
||||||
dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
|
FormArtillery dialog = new FormArtillery(deleted.getArtillery());
|
||||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
dialog.setSize(800, 500);
|
||||||
|
dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
|
||||||
|
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||||
|
|
||||||
dialog.setVisible(true);
|
dialog.setVisible(true);
|
||||||
|
} else {
|
||||||
|
JOptionPane.showMessageDialog(this, "Стек удалённых объектов пуст", "Провал", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
buttonLeft.addActionListener(e -> {
|
buttonLeft.addActionListener(e -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user