More AWT/Swing merge from GNU Classpath.
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Fri, 9 Aug 2002 04:45:29 +0000 (04:45 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Fri, 9 Aug 2002 04:45:29 +0000 (05:45 +0100)
From-SVN: r56151

libjava/ChangeLog
libjava/javax/swing/plaf/metal/MetalLookAndFeel.java [new file with mode: 0644]

index 03f34a5..24aca73 100644 (file)
        * gnu/awt/xlib/XGraphicsConfiguration.java,
        gnu/awt/xlib/XToolkit.java: Updated to compile against 1.4 abstract
        API.
+       
+       * javax/swing/plaf/metal/MetalLookAndFeel.java: New file from 
+       GNU Classpath.
 
        * Makefile.am: Add new files.
        * Makefile.in: Rebuilt.
diff --git a/libjava/javax/swing/plaf/metal/MetalLookAndFeel.java b/libjava/javax/swing/plaf/metal/MetalLookAndFeel.java
new file mode 100644 (file)
index 0000000..55ccc1e
--- /dev/null
@@ -0,0 +1,31 @@
+package javax.swing.plaf.metal;
+
+import javax.swing.*;
+import javax.swing.plaf.*;
+import javax.swing.plaf.basic.*;
+
+
+public class MetalLookAndFeel extends LookAndFeel
+ {        
+     public boolean isNativeLookAndFeel()        { return true; }
+     public boolean isSupportedLookAndFeel()     { return true; }
+     public String getDescription()              { return "Metal look and feel"; }
+     public String getID()                       { return "MetalLookAndFeel"; }
+     public String getName()                     { return "MetalLookAndFeel"; }
+     
+     
+     UIDefaults LAF_defaults;
+     
+     public MetalLookAndFeel()
+     {
+     }
+
+     public UIDefaults getDefaults()
+        {
+          if (LAF_defaults == null)
+            LAF_defaults = new BasicDefaults();
+            
+            //      Returns the default values for this look and feel. 
+            return LAF_defaults;
+        }
+ };