/[classpath]/classpath/javax/swing/text/JTextComponent.java
ViewVC logotype

Diff of /classpath/javax/swing/text/JTextComponent.java

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

revision 1.19 by mkoch, Sun Nov 21 12:56:30 2004 UTC revision 1.20 by mkoch, Tue Nov 23 13:15:38 2004 UTC
# Line 1015  public abstract class JTextComponent ext Line 1015  public abstract class JTextComponent ext
1015    /**    /**
1016     * Enables/disabled this text component's editability.     * Enables/disabled this text component's editability.
1017     *     *
1018     * @param editable true to make it editable, false otherwise.     * @param newValue true to make it editable, false otherwise.
1019     */     */
1020    public void setEditable(boolean editable)    public void setEditable(boolean newValue)
1021    {    {
1022      firePropertyChange("editable", this.editable, editable);      if (editable == newValue)
1023      this.editable = editable;        return;
1024    
1025        boolean oldValue = editable;
1026        editable = newValue;
1027        firePropertyChange("editable", oldValue, newValue);
1028    }    }
1029    
1030    /**    /**

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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