当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class BasicLookAndFeel - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing.plaf.basic
Class BasicLookAndFeel
java.lang.Object
|
+--javax.swing.LookAndFeel
|
+--javax.swing.plaf.basic.BasicLookAndFeel
- Direct Known Subclasses:
- MetalLookAndFeel
- public abstract class BasicLookAndFeel
- extends LookAndFeel
- implements Serializable
Implements the a standard base LookAndFeel class from which
standard desktop LookAndFeel classes (JLF, Mac, Windows, etc.)
can be derived. This class cannot be instantiated directly,
however the UI classes "Basic" defines can be.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.LookAndFeel |
getDescription,
getID,
getName,
initialize,
installBorder,
installColors,
installColorsAndFont,
isNativeLookAndFeel,
isSupportedLookAndFeel,
makeIcon,
makeKeyBindings,
toString,
uninitialize,
uninstallBorder |
BasicLookAndFeel
public BasicLookAndFeel()
getDefaults
public UIDefaults getDefaults()
- Description copied from class: LookAndFeel
- This method is called once by UIManager.setLookAndFeel to create
the look and feel specific defaults table. Other applications,
for example an application builder, may also call this method.
- Overrides:
- getDefaults in class LookAndFeel
- Tags copied from class: LookAndFeel
- See Also:
LookAndFeel.initialize()
,
LookAndFeel.uninitialize()
,
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
initClassDefaults
protected void initClassDefaults(UIDefaults table)
- Initialize the uiClassID to BasicComponentUI mapping.
The JComponent classes define their own uiClassID constants
(see AbstractComponent.getUIClassID). This table must
map those constants to a BasicComponentUI class of the
appropriate type.
- See Also:
getDefaults()
initSystemColorDefaults
protected void initSystemColorDefaults(UIDefaults table)
- Load the SystemColors into the defaults table. The keys
for SystemColor defaults are the same as the names of
the public fields in SystemColor. If the table is being
created on a native Windows platform we use the SystemColor
values, otherwise we create color objects whose values match
the defaults Windows95 colors.
loadSystemColors
protected void loadSystemColors(UIDefaults table,
String[] systemColors,
boolean useNative)
- If this is the native look and feel the initial values for the
system color properties are the same as the SystemColor constants.
If not we use the integer color values in the
systemColors
argument.
initComponentDefaults
protected void initComponentDefaults(UIDefaults table)
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.