From 695c870f18e5cecfe8da7033c8db7c9c70a42c4d Mon Sep 17 00:00:00 2001 From: tspitzer Date: Mon, 30 Sep 2013 11:40:02 +0200 Subject: working --- Dozentenmodul/src/GUI/AddSoftware.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dozentenmodul/src/GUI/AddSoftware.java') 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); -- cgit v1.2.3-55-g7522