This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[GUI] Patch: javax.swing - little problems
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 10 Jun 2004 09:44:35 +0200
- Subject: [GUI] Patch: javax.swing - little problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited the attached patch to fix two little issues Kim Ho
introduced last night.
Michael
2004-06-10 Michael Koch <konqueror@gmx.de>
* javax/swing/JComponent.java
(fireVetoableChange): Removed redundant cast.
* javax/swing/JLabel.java
(getDisabledIcon): Save icon for next call.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAyBFmWSOgCCdjSDsRAs1WAJ9xdvtl1CC7GR+lLl9VrZSfp/VxFgCfchJI
Az2Yxh8NeagGVWtiGVSNAbk=
=/4OC
-----END PGP SIGNATURE-----
Index: javax/swing/JComponent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JComponent.java,v
retrieving revision 1.7.2.11
diff -u -b -B -r1.7.2.11 JComponent.java
--- javax/swing/JComponent.java 9 Jun 2004 20:55:10 -0000 1.7.2.11
+++ javax/swing/JComponent.java 10 Jun 2004 07:41:53 -0000
@@ -744,7 +744,7 @@
PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue);
for (int i = 0; i < listeners.length; i++)
- ((VetoableChangeListener) listeners[i]).vetoableChange(evt);
+ listeners[i].vetoableChange(evt);
}
/**
Index: javax/swing/JLabel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JLabel.java,v
retrieving revision 1.4.2.5
diff -u -b -B -r1.4.2.5 JLabel.java
--- javax/swing/JLabel.java 9 Jun 2004 20:55:10 -0000 1.4.2.5
+++ javax/swing/JLabel.java 10 Jun 2004 07:41:53 -0000
@@ -332,7 +332,7 @@
public Icon getDisabledIcon()
{
if (disabledIcon == null && activeIcon instanceof ImageIcon)
- return new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage()));
+ disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage()));
return disabledIcon;
}