OSDN Git Service

ID入力欄でエンターを押すと処理を開始するよう対応
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 05:59:33 +0000 (14:59 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:39:28 +0000 (20:39 +0900)
frontend/src/yukihane/inqubus/gui/IdComboBox.java
frontend/src/yukihane/inqubus/gui/MainFrame.java

index 744cb1a..91a3f81 100644 (file)
@@ -46,7 +46,7 @@ class IdComboBox extends JComboBox<String> {
 
     }
 
-    private JTextField getEditorComponent() {
+    JTextField getEditorComponent() {
         return (JTextField) getEditor().getEditorComponent();
     }
 
index d8975bc..dddc532 100644 (file)
@@ -233,7 +233,7 @@ public class MainFrame extends JFrame {
 
         fldId = new IdComboBox(videoFileWatcher);
         fldId.setToolTipText(ID_FIELD_TOOLTIP);
-//        fldId.addActionListener(applyListener);
+        fldId.getEditorComponent().addActionListener(applyListener);
         fldId.addFocusListener(new java.awt.event.FocusAdapter() {
 
             public void focusLost(java.awt.event.FocusEvent evt) {