More AWT/Swing merge from GNU Classpath.
From-SVN: r56151
This commit is contained in:
parent
df74f07755
commit
ef1c32c637
@ -412,6 +412,9 @@
|
||||
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.
|
||||
|
||||
|
31
libjava/javax/swing/plaf/metal/MetalLookAndFeel.java
Normal file
31
libjava/javax/swing/plaf/metal/MetalLookAndFeel.java
Normal file
@ -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;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user