All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.motif.MotifOptionPaneUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.OptionPaneUI
                    |
                    +----java.awt.swing.basic.AbstractOptionPaneUI
                            |
                            +----java.awt.swing.basic.BasicOptionPaneUI
                                    |
                                    +----java.awt.swing.motif.MotifOptionPaneUI

public class MotifOptionPaneUI
extends BasicOptionPaneUI
Provides the CDE/Motif look and feel for a JOptionPane.


Constructor Index

 o MotifOptionPaneUI()

Method Index

 o addIcon(Container)
Creates and adds a JLabel representing the icon returned from getIcon to top.
 o createButtons()
Creates and returns a Container containin the buttons.
 o createUI(JComponent)
Creates a new MotifOptionPaneUI instance.
 o getBodyInsets()
Returns the insets to be used for the body, the body contains both the image and the actual message.
 o getButtonInsets()
Returns the insets to be used in the Container housing the buttons.
 o getMinimumOptionPaneSize()
Returns null, CDE/Motif does not impose a minimum size.
 o paint(Graphics, JComponent)
Fills the backround if the component is opaque.

Constructors

 o MotifOptionPaneUI
public MotifOptionPaneUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent x)
Creates a new MotifOptionPaneUI instance.

 o createButtons
protected Container createButtons()
Creates and returns a Container containin the buttons. The buttons are created by calling getButtons.

Overrides:
createButtons in class AbstractOptionPaneUI
 o getButtonInsets
protected Insets getButtonInsets()
Returns the insets to be used in the Container housing the buttons.

Overrides:
getButtonInsets in class AbstractOptionPaneUI
 o paint
public void paint(Graphics g,
                  JComponent c)
Fills the backround if the component is opaque.

Overrides:
paint in class BasicOptionPaneUI
 o addIcon
protected void addIcon(Container top)
Creates and adds a JLabel representing the icon returned from getIcon to top. This is messaged from createBody

Overrides:
addIcon in class AbstractOptionPaneUI
 o getMinimumOptionPaneSize
public Dimension getMinimumOptionPaneSize()
Returns null, CDE/Motif does not impose a minimum size.

Overrides:
getMinimumOptionPaneSize in class BasicOptionPaneUI
 o getBodyInsets
protected Insets getBodyInsets()
Returns the insets to be used for the body, the body contains both the image and the actual message.

Overrides:
getBodyInsets in class AbstractOptionPaneUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature