diff --git a/ProjectStormtrooper/FormPlaneCollection.java b/ProjectStormtrooper/FormPlaneCollection.java index ef973f3..88b021a 100644 --- a/ProjectStormtrooper/FormPlaneCollection.java +++ b/ProjectStormtrooper/FormPlaneCollection.java @@ -79,13 +79,12 @@ public class FormPlaneCollection { "Ошибка", JOptionPane.ERROR_MESSAGE); } - } catch (Exception ex) { + } catch (NumberFormatException ex) { JOptionPane.showMessageDialog(this.getPanelWrapper(), "Неверное значение", "Ошибка", JOptionPane.ERROR_MESSAGE); } - } public void buttonRefreshCollectionClicked(ActionEvent e) {