/[classpath]/classpath/javax/swing/JFormattedTextField.java
ViewVC logotype

Diff of /classpath/javax/swing/JFormattedTextField.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by rabbit78, Wed Jun 8 14:16:01 2005 UTC revision 1.14 by rabbit78, Mon Jun 13 11:57:07 2005 UTC
# Line 296  public class JFormattedTextField extends Line 296  public class JFormattedTextField extends
296    {    {
297      if (value == newValue)      if (value == newValue)
298        return;        return;
299        
300        // format value
301        AbstractFormatter formatter = formatterFactory.getFormatter(this);
302        try
303          {
304            setText(formatter.valueToString(newValue));
305          }
306        catch (ParseException ex)
307          {
308            // TODO: what should we do with this?
309          }
310    
311      Object oldValue = value;      Object oldValue = value;
312      value = newValue;      value = newValue;
313      firePropertyChange("value", oldValue, newValue);      firePropertyChange("value", oldValue, newValue);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26