This also introduces a missing method in MetalLookAndFeel. Strange that
nobody noticed that before ;-)
Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.70
diff -u -r1.70 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java 16 Nov 2005 15:43:34
-0000 1.70
+++ javax/swing/plaf/metal/MetalLookAndFeel.java 16 Nov 2005 20:31:28
-0000
@@ -1202,4 +1202,13 @@
defaults.putDefaults(uiDefaults);
}
+ /**
+ * Returns the current theme setting for the Metal L&F.
+ *
+ * @return the current theme setting for the Metal L&F
+ */
+ public static MetalTheme getCurrentTheme()
+ {
+ return theme;
+ }
}