| javax.swing.JButton com.izforge.izpack.gui.HighlightJButton
HighlightJButton | public class HighlightJButton extends JButton (Code) | | A button that highlights when the button passes over.
author: Julien Ponge |
Method Summary | |
protected void | initButton(Color highlightColor) Does the extra initialisations. | protected void | reset() Forces the button to unhighlight. | public void | setEnabled(boolean b) Overriden to ensure that the button won't stay highlighted if it had the mouse over it. |
defaultColor | protected Color defaultColor(Code) | | The default color.
|
highlightColor | protected Color highlightColor(Code) | | The highlighted color.
|
HighlightJButton | HighlightJButton(Icon icon, Color color)(Code) | | The constructor (use ButtonFactory to create button).
Parameters: icon - The icon to display. Parameters: color - The highlight color. |
HighlightJButton | HighlightJButton(String text, Color color)(Code) | | The constructor (use ButtonFactory to create button).
Parameters: text - The text to display. Parameters: color - The highlight color. |
HighlightJButton | HighlightJButton(String text, Icon icon, Color color)(Code) | | The constructor (use ButtonFactory to create button).
Parameters: text - The text to display. Parameters: icon - The icon to display. Parameters: color - The highlight color. |
HighlightJButton | HighlightJButton(Action a, Color color)(Code) | | The constructor (use ButtonFactory to create button).
Parameters: a - The action. Parameters: color - The highlight color. |
initButton | protected void initButton(Color highlightColor)(Code) | | Does the extra initialisations.
Parameters: highlightColor - The highlight color. |
reset | protected void reset()(Code) | | Forces the button to unhighlight.
|
setEnabled | public void setEnabled(boolean b)(Code) | | Overriden to ensure that the button won't stay highlighted if it had the mouse over it.
Parameters: b - Button state. |
|
|