diff options
Diffstat (limited to 'Dozentenmodul/src/GUI/AddSoftware.java')
| -rw-r--r-- | Dozentenmodul/src/GUI/AddSoftware.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Dozentenmodul/src/GUI/AddSoftware.java b/Dozentenmodul/src/GUI/AddSoftware.java index c3a41227..c04c5012 100644 --- a/Dozentenmodul/src/GUI/AddSoftware.java +++ b/Dozentenmodul/src/GUI/AddSoftware.java @@ -31,7 +31,7 @@ public class AddSoftware extends JDialog { /**
* Launch the application.
*/
- public static void main(String[] args) {
+ /*public static void main(String[] args) {
try {
AddSoftware dialog = new AddSoftware();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
@@ -39,7 +39,7 @@ public class AddSoftware extends JDialog { } catch (Exception e) {
e.printStackTrace();
}
- }
+ }*/
/**
* Create the dialog.
@@ -124,7 +124,9 @@ public class AddSoftware extends JDialog { }
Connection con=sql.getConnection();
sql.AddSoftware(con, textField_1.getText().toString(), textField_2.getText().toString(), comboBox.getSelectedItem().toString(), Kosten, textField.getText().toString());
+ dispose();
}
+
});
okButton.setActionCommand("OK");
buttonPane.add(okButton);
|
