Revision: 18884
          http://sourceforge.net/p/gate/code/18884
Author:   markagreenwood
Date:     2015-08-25 17:23:21 +0000 (Tue, 25 Aug 2015)
Log Message:
-----------
Dom and I now officially hate Swing, but we seem to have fixed the missing doc 
features on tab, not sure if this fixes missing annotation features as well, 
but hopefully the fix will be the same just in a different place

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java

Modified: gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java
===================================================================
--- gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java      2015-08-25 
01:19:59 UTC (rev 18883)
+++ gate/trunk/src/main/gate/gui/FeaturesSchemaEditor.java      2015-08-25 
17:23:21 UTC (rev 18884)
@@ -383,6 +383,15 @@
 
   protected class FeatureEditorRenderer extends DefaultCellEditor
                                         implements TableCellRenderer {
+    
+    @Override
+    public boolean stopCellEditing() {
+      // this is a fix for a bug in Java 8 where tabbing out of the
+      // combo box doesn't store the value like it does in java 7
+      editorCombo.setSelectedItem(editorCombo.getEditor().getItem());
+      return super.stopCellEditing();
+    }
+    
     public FeatureEditorRenderer(){
       super(new JComboBox());
       defaultComparator = new ObjectComparator();

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to