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 |
|
|