Author: thully
Date: 2012-12-06 15:16:56 -0800 (Thu, 06 Dec 2012)
New Revision: 30913

Modified:
   
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/StringHandler.java
Log:
Changed code to remove cast in my last update

Modified: 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/StringHandler.java
===================================================================
--- 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/StringHandler.java
 2012-12-06 23:10:25 UTC (rev 30912)
+++ 
core3/impl/trunk/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/StringHandler.java
 2012-12-06 23:16:56 UTC (rev 30913)
@@ -62,8 +62,10 @@
                }
 
                //set Gui
-               textField = new JFormattedTextField(s);
-               
((DefaultFormatter)textField.getFormatter()).setOverwriteMode(false);
+               final DefaultFormatter formatter = new DefaultFormatter();
+               formatter.setOverwriteMode(false);
+               textField = new JFormattedTextField(formatter);
+               textField.setValue(s);
                textField.setPreferredSize(GUIDefaults.TEXT_BOX_DIMENSION);
                panel = new JPanel(new BorderLayout(GUIDefaults.hGap, 
GUIDefaults.vGap));
                final JLabel label = new JLabel(getDescription());

-- 
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