APIdia Launch Partner
Top Description Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifLookAndFeel

extends BasicLookAndFeel
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XAWTLookAndFeel
Annotations
@SuppressWarnings:serial
@Deprecated
since:13
forRemoval:true
Imports
java.awt.Color, .Font, java.awt.event.KeyEvent, javax.swing.JTextField, .UIDefaults, javax.swing.border.Border, javax.swing.plaf.BorderUIResource, .ColorUIResource, .FontUIResource, .InsetsUIResource, javax.swing.plaf.basic.BasicBorders, .BasicLookAndFeel, javax.swing.text.DefaultEditorKit, sun.swing.SwingAccessor, .SwingUtilities2

Deprecated

for removal since 13.

The Motif Look and Feel is deprecated with the intent to remove it in some future release. It is recommended to use javax.swing.plaf.metal.MetalLookAndFeel instead.

Implements the Motif Look and Feel. UI classes not implemented specifically for Motif will default to those implemented in Basic.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getDescription()

Implements abstract javax.swing.LookAndFeel.getDescription.

Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel".

public String
getID()

Implements abstract javax.swing.LookAndFeel.getID.

Return a string that identifies this look and feel.

public String
getName()

Implements abstract javax.swing.LookAndFeel.getName.

Return a short string that identifies this look and feel, e.g. "CDE/Motif".

protected void
initClassDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initClassDefaults.

Populates table with mappings from uiClassID to the fully qualified name of the ui class.

protected void
initComponentDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults.

Populates table with the defaults for the basic look and feel.

private void
initResourceBundle(UIDefaults table)

Hides javax.swing.plaf.basic.BasicLookAndFeel.initResourceBundle.

Initialize the defaults table with the name of the ResourceBundle used for getting localized defaults.

protected void
initSystemColorDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initSystemColorDefaults.

Load the SystemColors into the defaults table.

public boolean
isNativeLookAndFeel()

Implements abstract javax.swing.LookAndFeel.isNativeLookAndFeel.

If the underlying platform has a "native" look and feel, and this is an implementation of it, return true.

public boolean
isSupportedLookAndFeel()

Implements abstract javax.swing.LookAndFeel.isSupportedLookAndFeel.

Return true if the underlying platform supports and or permits this look and feel.

Inherited from javax.swing.plaf.basic.BasicLookAndFeel:
createAudioActiongetAudioActionMapgetDefaultsinitializeloadSystemColorsplaySounduninitialize

Constructor Detail

MotifLookAndFeelback to summary
public MotifLookAndFeel()

Method Detail

getDescriptionback to summary
public String getDescription()

Implements abstract javax.swing.LookAndFeel.getDescription.

Doc from javax.swing.LookAndFeel.getDescription.

Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel". This string is intended for the user, e.g. in the title of a window or in a ToolTip message.

Annotations
@Override
getIDback to summary
public String getID()

Implements abstract javax.swing.LookAndFeel.getID.

Doc from javax.swing.LookAndFeel.getID.

Return a string that identifies this look and feel. This string will be used by applications/services that want to recognize well known look and feel implementations. Presently the well known names are "Motif", "Windows", "Mac", "Metal". Note that a LookAndFeel derived from a well known superclass that doesn't make any fundamental changes to the look or feel shouldn't override this method.

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract javax.swing.LookAndFeel.getName.

Doc from javax.swing.LookAndFeel.getName.

Return a short string that identifies this look and feel, e.g. "CDE/Motif". This string should be appropriate for a menu item. Distinct look and feels should have different names, e.g. a subclass of MotifLookAndFeel that changes the way a few components are rendered should be called "CDE/Motif My Way"; something that would be useful to a user trying to select a L&F from a list of names.

Annotations
@Override
initClassDefaultsback to summary
protected void initClassDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initClassDefaults.

Doc from javax.swing.plaf.basic.BasicLookAndFeel.initClassDefaults.

Populates table with mappings from uiClassID to the fully qualified name of the ui class. The value for a particular uiClassID is "javax.swing.plaf.basic.Basic + uiClassID". For example, the value for the uiClassID TreeUI is "javax.swing.plaf.basic.BasicTreeUI".

Annotations
@Override
initComponentDefaultsback to summary
protected void initComponentDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults.

Doc from javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults.

Populates table with the defaults for the basic look and feel.

Annotations
@Override
initResourceBundleback to summary
private void initResourceBundle(UIDefaults table)

Hides javax.swing.plaf.basic.BasicLookAndFeel.initResourceBundle.

Initialize the defaults table with the name of the ResourceBundle used for getting localized defaults.

initSystemColorDefaultsback to summary
protected void initSystemColorDefaults(UIDefaults table)

Overrides javax.swing.plaf.basic.BasicLookAndFeel.initSystemColorDefaults.

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 Motif platform we use the SystemColor values, otherwise we create color objects whose values match the default CDE/Motif colors.

Annotations
@Override
isNativeLookAndFeelback to summary
public boolean isNativeLookAndFeel()

Implements abstract javax.swing.LookAndFeel.isNativeLookAndFeel.

Doc from javax.swing.LookAndFeel.isNativeLookAndFeel.

If the underlying platform has a "native" look and feel, and this is an implementation of it, return true. For example, when the underlying platform is Solaris running CDE a CDE/Motif look and feel implementation would return true.

Annotations
@Override
isSupportedLookAndFeelback to summary
public boolean isSupportedLookAndFeel()

Implements abstract javax.swing.LookAndFeel.isSupportedLookAndFeel.

Doc from javax.swing.LookAndFeel.isSupportedLookAndFeel.

Return true if the underlying platform supports and or permits this look and feel. This method returns false if the look and feel depends on special resources or legal agreements that aren't defined for the current platform.

Annotations
@Override