aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-03-19 20:42:39 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-03-19 20:42:39 +0000
commit9c6637c8d992c2df96bc29e021f148097917b1d8 (patch)
treec42570450a7087d1141fcf9e8a557fb24344a315 /libjava/javax/swing/text
parent28f2a26519a128f843c82bd7a81744514be94c17 (diff)
downloadgcc-9c6637c8d992c2df96bc29e021f148097917b1d8.zip
gcc-9c6637c8d992c2df96bc29e021f148097917b1d8.tar.gz
gcc-9c6637c8d992c2df96bc29e021f148097917b1d8.tar.bz2
2004-03-19 Michael Koch <konqueror@gmx.de>
* java/awt/image/AffineTransformOp.java (AffineTransformOp): Made public. * javax/swing/JComponent.java (listenerList): Made protected. (accessibleContext): Likewise. * javax/swing/JList.java (valueChanged): Dont use internal fields of ListSelectionEvent. * javax/swing/JViewport.java (getView): Dont use internal fields of Component. (addImpl): Likewise. * javax/swing/Timer.java (isRunning): Made public. (start): Likewise. (stop): Likewise. * javax/swing/UIDefaults.java (getInt): Made public. * javax/swing/plaf/basic/BasicListUI.java (mousePressed): Dont use internal fields of MouseEvent. (propertyChanged): Dont use internal fields of PropertyChangeEvent. * javax/swing/plaf/basic/BasicScrollBarUI.java (arrowIcon): Made static. * javax/swing/plaf/basic/BasicViewportUI.java (stateChanged): Dont use internal field on ChangeEvent. * javax/swing/text/JTextComponent.java (getUI): Call UIManager.getUI(). (updateUI): Use getUI(). From-SVN: r79699
Diffstat (limited to 'libjava/javax/swing/text')
-rw-r--r--libjava/javax/swing/text/JTextComponent.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/libjava/javax/swing/text/JTextComponent.java b/libjava/javax/swing/text/JTextComponent.java
index e112cb4..48bb0c0 100644
--- a/libjava/javax/swing/text/JTextComponent.java
+++ b/libjava/javax/swing/text/JTextComponent.java
@@ -472,15 +472,15 @@ public abstract class JTextComponent extends JComponent
// Sets the vertical position of the label's text, relative to its image.
}
- public TextUI getUI()
- { return (TextUI) ui;
- }
+ public TextUI getUI()
+ {
+ return (TextUI) UIManager.getUI(this);
+ }
- public void updateUI()
- {
- TextUI b = (TextUI)UIManager.getUI(this);
- setUI(b);
- }
+ public void updateUI()
+ {
+ setUI(getUI());
+ }
public Dimension getPreferredScrollableViewportSize()
{