summaryrefslogtreecommitdiff
path: root/javax/swing/UIManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/UIManager.java')
-rw-r--r--javax/swing/UIManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/javax/swing/UIManager.java b/javax/swing/UIManager.java
index b70d13952..77be44afc 100644
--- a/javax/swing/UIManager.java
+++ b/javax/swing/UIManager.java
@@ -616,7 +616,7 @@ public class UIManager implements Serializable
*/
public static UIDefaults getLookAndFeelDefaults()
{
- return currentUIDefaults;
+ return lookAndFeelDefaults;
}
/**
@@ -714,7 +714,8 @@ public class UIManager implements Serializable
throws UnsupportedLookAndFeelException
{
if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel())
- throw new UnsupportedLookAndFeelException(newLookAndFeel.getName());
+ throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()
+ + " not supported on this platform");
LookAndFeel oldLookAndFeel = currentLookAndFeel;
if (oldLookAndFeel != null)
oldLookAndFeel.uninitialize();