/[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.27 by rabbit78, Thu Oct 6 19:44:51 2005 UTC revision 1.28 by rabbit78, Wed Oct 19 15:26:39 2005 UTC
# Line 475  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.27  
changed lines
  Added in v.1.28

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