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.
MotifOptionPaneUI()
-
addIcon(Container)
- Creates and adds a JLabel representing the icon returned from
getIcon
to top
.
createButtons()
- Creates and returns a Container containin the buttons.
createUI(JComponent)
- Creates a new MotifOptionPaneUI instance.
getBodyInsets()
- Returns the insets to be used for the body, the body contains both
the image and the actual message.
getButtonInsets()
- Returns the insets to be used in the Container housing the buttons.
getMinimumOptionPaneSize()
- Returns null, CDE/Motif does not impose a minimum size.
paint(Graphics, JComponent)
- Fills the backround if the component is opaque.
MotifOptionPaneUI
public MotifOptionPaneUI()
createUI
public static ComponentUI createUI(JComponent x)
- Creates a new MotifOptionPaneUI instance.
createButtons
protected Container createButtons()
- Creates and returns a Container containin the buttons. The buttons
are created by calling
getButtons
.
- Overrides:
- createButtons in class AbstractOptionPaneUI
getButtonInsets
protected Insets getButtonInsets()
- Returns the insets to be used in the Container housing the buttons.
- Overrides:
- getButtonInsets in class AbstractOptionPaneUI
paint
public void paint(Graphics g,
JComponent c)
- Fills the backround if the component is opaque.
- Overrides:
- paint in class BasicOptionPaneUI
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
getMinimumOptionPaneSize
public Dimension getMinimumOptionPaneSize()
- Returns null, CDE/Motif does not impose a minimum size.
- Overrides:
- getMinimumOptionPaneSize in class BasicOptionPaneUI
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