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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) static ComponentUIcreateUI(JComponent pane) Create a new StyledOptionPaneUI.voidpaint(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, uninstallUIMethods 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:
paintin classComponentUI
-
addMessageComponents
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) - Overrides:
addMessageComponentsin classBasicOptionPaneUI
-