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

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

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

revision 1.38 by rabbit78, Fri Jul 15 11:41:06 2005 UTC revision 1.39 by rschuster, Fri Jul 15 12:57:38 2005 UTC
# Line 564  public abstract class AbstractButton ext Line 564  public abstract class AbstractButton ext
564    
565   protected void init(String text, Icon icon)   protected void init(String text, Icon icon)
566   {   {
567      this.text = text;      // If text is null, we fall back to the empty
568        // string (which is set using AbstractButton's
569        // constructor).
570        // This way the behavior of the JDK is matched.
571        if(text != null)
572            this.text = text;
573    
574      default_icon = icon;      default_icon = icon;
575      actionListener = createActionListener();      actionListener = createActionListener();
576      changeListener = createChangeListener();      changeListener = createChangeListener();

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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