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

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

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

revision 1.12.2.5 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.12.2.6 by gnu_andrew, Wed Nov 2 00:43:45 2005 UTC
# Line 331  public class JLabel extends JComponent i Line 331  public class JLabel extends JComponent i
331    /** The gap between the icon and the text. */    /** The gap between the icon and the text. */
332    private transient int iconTextGap = 4;    private transient int iconTextGap = 4;
333    
   /** The accessible context for this JLabel. */  
   private AccessibleJLabel accessibleContext;  
   
334    /**    /**
335     * Creates a new vertically centered, horizontally on the leading edge     * Creates a new vertically centered, horizontally on the leading edge
336     * JLabel object with text and no icon.     * JLabel object with text and no icon.
# Line 403  public class JLabel extends JComponent i Line 400  public class JLabel extends JComponent i
400      this.text = text;      this.text = text;
401      this.icon = icon;      this.icon = icon;
402      this.horizontalAlignment = horizontalAlignment;      this.horizontalAlignment = horizontalAlignment;
403        setAlignmentX(0.0F);
404      updateUI();      updateUI();
405    }    }
406    
# Line 477  public class JLabel extends JComponent i Line 475  public class JLabel extends JComponent i
475    {    {
476      if (text != newText)      if (text != newText)
477        {        {
478          String oldText = text;          String oldText = text;
479          text = newText;          text = newText;
480          firePropertyChange("text", oldText, newText);          firePropertyChange("text", oldText, newText);
481    
482          if (text != null && text.length() <= displayedMnemonicIndex)          if (text != null && text.length() <= displayedMnemonicIndex)
483            setDisplayedMnemonicIndex(text.length() - 1);            setDisplayedMnemonicIndex(text.length() - 1);
484            revalidate();
485            repaint();
486        }        }
487    }    }
488    

Legend:
Removed from v.1.12.2.5  
changed lines
  Added in v.1.12.2.6

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