This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[GUI] Patch: javax.swing.plaf.basic.BasicLookAndFeel
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 8 Jun 2004 22:22:13 +0200
- Subject: [GUI] Patch: javax.swing.plaf.basic.BasicLookAndFeel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited the attached patch to add support for
FormattedTextFieldUI classes and to rename enum to e to get no
problems with the enum keyword in Java 1.5.
Michael
2004-06-08 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/basic/BasicLookAndFeel.java
(initClassDefaults): Added FormattedTextFieldUI.
(loadResourceBundle): Renamed enum to e.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAxh/4WSOgCCdjSDsRAh9+AJ46fuPK3ox+YM3tjuCIUjLwRtcqWgCcCcIT
tmQvYvgvUFItEGlRMtMGuWE=
=Us+O
-----END PGP SIGNATURE-----
Index: javax/swing/plaf/basic/BasicLookAndFeel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/plaf/basic/BasicLookAndFeel.java,v
retrieving revision 1.4.2.9
diff -u -b -B -r1.4.2.9 BasicLookAndFeel.java
--- javax/swing/plaf/basic/BasicLookAndFeel.java 21 May 2004 23:34:15 -0000 1.4.2.9
+++ javax/swing/plaf/basic/BasicLookAndFeel.java 8 Jun 2004 20:18:37 -0000
@@ -110,6 +110,7 @@
"DesktopIconUI", "javax.swing.plaf.basic.BasicDesktopIconUI",
"DesktopPaneUI", "javax.swing.plaf.basic.BasicDesktopPaneUI",
"EditorPaneUI", "javax.swing.plaf.basic.BasicEditorPaneUI",
+ "FormattedTextFieldUI", "javax.swing.plaf.basic.BasicFormattedTextFieldUI",
"InternalFrameUI", "javax.swing.plaf.basic.BasicInternalFrameUI",
"LabelUI", "javax.swing.plaf.basic.BasicLabelUI",
"ListUI", "javax.swing.plaf.basic.BasicListUI",
@@ -205,15 +206,15 @@
private void loadResourceBundle(UIDefaults defaults)
{
ResourceBundle bundle;
- Enumeration enum;
+ Enumeration e;
String key;
String value;
bundle = ResourceBundle.getBundle("resources/basic");
// Process Resources
- enum = bundle.getKeys();
- while (enum.hasMoreElements())
+ e = bundle.getKeys();
+ while (e.hasMoreElements())
{
- key = (String) enum.nextElement();
+ key = (String) e.nextElement();
value = bundle.getString(key);
defaults.put(key, value);
}