Author: oriol
Date: 2012-09-05 07:22:45 -0700 (Wed, 05 Sep 2012)
New Revision: 30318

Modified:
   
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/IntegerHandler.java
Log:
Fixing bug #1431. Add setting text field to default value

Modified: 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/IntegerHandler.java
===================================================================
--- 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/IntegerHandler.java
        2012-09-05 01:09:53 UTC (rev 30317)
+++ 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/IntegerHandler.java
        2012-09-05 14:22:45 UTC (rev 30318)
@@ -106,6 +106,9 @@
                                newValue = (Integer)getValue();
                                JOptionPane.showMessageDialog(null, "An Integer 
was expected!\nThe value will be set to the default: "
                                                              + newValue, 
"Error", JOptionPane.ERROR_MESSAGE);
+                               
+                               textField.setValue(getValue().toString());
+                               textField.setBackground(Color.white);
                        } catch(final Exception e) {
                                e.printStackTrace();
                        }

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to