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

public Class MotifOptionPaneUI

extends BasicOptionPaneUI
Class Inheritance
Imports
java.awt.BorderLayout, .Color, .Container, .Dimension, .Graphics, javax.swing.Icon, .JComponent, .JLabel, .JPanel, .SwingConstants, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicOptionPaneUI

Provides the CDE/Motif look and feel for a JOptionPane.
Author
Scott Violet

Field Summary

Inherited from javax.swing.plaf.basic.BasicOptionPaneUI:
hasCustomComponentsinitialFocusComponentinputComponentMinimumHeightminimumSizeMinimumWidthoptionPanepropertyChangeListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
addIcon(Container top)

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.addIcon.

Creates and adds a JLabel representing the icon returned from getIcon to top.

protected Container
createButtonArea()

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.createButtonArea.

Creates and returns a Container containing the buttons.

protected Container
public static ComponentUI
createUI(JComponent x)

Hides javax.swing.plaf.basic.BasicOptionPaneUI.createUI.

Creates a new MotifOptionPaneUI instance.

public Dimension
getMinimumOptionPaneSize()

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.getMinimumOptionPaneSize.

Returns null, CDE/Motif does not impose a minimum size.

Inherited from javax.swing.plaf.basic.BasicOptionPaneUI:
addButtonComponentsaddMessageComponentsburstStringIntocontainsCustomComponentscreateButtonActionListenercreateLayoutManagercreateMessageAreacreatePropertyChangeListenergetButtonsgetIcongetIconForTypegetInitialValueIndexgetMaxCharactersPerLineCountgetMessagegetPreferredSizegetSizeButtonsToSameWidthinstallComponentsinstallDefaultsinstallKeyboardActionsinstallListenersinstallUIresetInputValueselectInitialValueuninstallComponentsuninstallDefaultsuninstallKeyboardActionsuninstallListenersuninstallUI

Constructor Detail

MotifOptionPaneUIback to summary
public MotifOptionPaneUI()

Method Detail

addIconback to summary
protected void addIcon(Container top)

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.addIcon.

Creates and adds a JLabel representing the icon returned from getIcon to top. This is messaged from createMessageArea

Annotations
@Override
createButtonAreaback to summary
protected Container createButtonArea()

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.createButtonArea.

Creates and returns a Container containing the buttons. The buttons are created by calling getButtons.

Annotations
@Override
createSeparatorback to summary
protected Container createSeparator()

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.createSeparator.

Doc from javax.swing.plaf.basic.BasicOptionPaneUI.createSeparator.

Returns a separator.

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent x)

Hides javax.swing.plaf.basic.BasicOptionPaneUI.createUI.

Creates a new MotifOptionPaneUI instance.

getMinimumOptionPaneSizeback to summary
public Dimension getMinimumOptionPaneSize()

Overrides javax.swing.plaf.basic.BasicOptionPaneUI.getMinimumOptionPaneSize.

Returns null, CDE/Motif does not impose a minimum size.

Annotations
@Override