Package games.stendhal.client.gui.styled
Class StyledOptionPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.OptionPaneUI
javax.swing.plaf.basic.BasicOptionPaneUI
games.stendhal.client.gui.styled.StyledOptionPaneUI
OptionPaneUI that tries to clean a bit of the assumptions that everyone uses
the metal theme.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
BasicOptionPaneUI.ButtonActionListener, BasicOptionPaneUI.ButtonAreaLayout, BasicOptionPaneUI.PropertyChangeHandler
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
hasCustomComponents, initialFocusComponent, inputComponent, MinimumHeight, minimumSize, MinimumWidth, optionPane, propertyChangeListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated)
static ComponentUI
createUI(JComponent pane)
Create a new StyledOptionPaneUI.void
paint(Graphics g, JComponent optionPane)
Methods inherited from class javax.swing.plaf.basic.BasicOptionPaneUI
addButtonComponents, addIcon, burstStringInto, containsCustomComponents, createButtonActionListener, createButtonArea, createLayoutManager, createMessageArea, createPropertyChangeListener, createSeparator, getButtons, getIcon, getIconForType, getInitialValueIndex, getMaxCharactersPerLineCount, getMessage, getMinimumOptionPaneSize, getPreferredSize, getSizeButtonsToSameWidth, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, resetInputValue, selectInitialValue, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
-
Constructor Details
-
StyledOptionPaneUI
-
-
Method Details
-
createUI
Create a new StyledOptionPaneUI. This method is used by the UIManager.- Parameters:
pane
- a JOptionpane- Returns:
- StyledOptionPaneUI for pane
-
paint
- Overrides:
paint
in classComponentUI
-
addMessageComponents
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated)- Overrides:
addMessageComponents
in classBasicOptionPaneUI
-