table work
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 18 Dec 2018 04:37:13 +0000 (22:37 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 18 Dec 2018 04:37:13 +0000 (22:37 -0600)
- fixed use of save/restore of ui nodes in tables
- default background white
- inadvertent resetting of table background via JPopupMenu

src/jalview/gui/FeatureSettings.java
swingjs/SwingJS-site.zip
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/timestamp

index 36af39a..9a0114a 100644 (file)
@@ -472,6 +472,8 @@ public class FeatureSettings extends JPanel
       {
         if (e.getSource() == variableColourCB)
         {
+          men.setVisible(true); // BH 2018 for JavaScript because this is a checkbox
+          men.setVisible(false); // BH 2018 for JavaScript because this is a checkbox
           if (featureColour.isSimpleColour())
           {
             /*
@@ -512,7 +514,9 @@ public class FeatureSettings extends JPanel
              */
             FeatureColourI fci = fr.getFeatureColours().get(type);
             table.setValueAt(fci, rowSelected, COLOUR_COLUMN);
-            table.validate();
+            // BH 2018 setting a table value does not invalidate it.
+            System.out.println("FeatureSettings is valied" + table.isValid());
+//            table.validate();
           }
         }
       }
index 4553ba7..7ff9aa9 100644 (file)
Binary files a/swingjs/SwingJS-site.zip and b/swingjs/SwingJS-site.zip differ
index 3abdd82..b1ec896 100644 (file)
@@ -1 +1 @@
-20181217180014 
+20181217223342 
index 4553ba7..7ff9aa9 100644 (file)
Binary files a/swingjs/ver/3.2.4/SwingJS-site.zip and b/swingjs/ver/3.2.4/SwingJS-site.zip differ
index 3abdd82..b1ec896 100644 (file)
@@ -1 +1 @@
-20181217180014 
+20181217223342