OSDN Git Service

コンフィグ画面のキャンセルボタンで閉じる
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 08:40:48 +0000 (17:40 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:40:01 +0000 (20:40 +0900)
frontend/src/yukihane/inqubus/gui/ConfigDialog.java

index 583cfb8..c6d89ce 100644 (file)
@@ -751,6 +751,13 @@ public class ConfigDialog extends JDialog {
             }
         });
         final JButton btnCancel = new JButton("Cancel");
+        btnCancel.addActionListener(new ActionListener() {
+
+            @Override
+            public void actionPerformed(ActionEvent e) {
+                dispose();
+            }
+        });
         pnlButton.add(btnOk);
         pnlButton.add(btnCancel);