| javax.swing.JButton org.underworldlabs.swing.RolloverButton
RolloverButton | public class RolloverButton extends JButton implements MouseListener(Code) | | This class creates a JButton where the borders are painted only
when the mouse is positioned over it.
When the mouse pointer is moved away from the button, the borders are removed.
author: Takis Diakoumis version: $Revision: 1.8 $ |
Inner Class :class PaintedButtonToolTip extends JToolTip | |
Constructor Summary | |
public | RolloverButton(ImageIcon img, String tip) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton(Action a, String tip) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton(String label, String tip, int h, int w) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton(ImageIcon img, String tip, int h, int w) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton(String imgPath, String tip) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton(String imgPath, String tip, int size) Creates a new RolloverButton with an associated image
and tool tip. | public | RolloverButton() |
RolloverButton | public RolloverButton(ImageIcon img, String tip)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: img - the ImageIcon to be displayed on the button Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton(Action a, String tip)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: a - the Action to be associated with this button Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton(String label, String tip, int h, int w)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: label - the button's label Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton(ImageIcon img, String tip, int h, int w)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: label - the button's label Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton(String imgPath, String tip)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: imgPath - the path relative to this class ofthe button icon image Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton(String imgPath, String tip, int size)(Code) | | Creates a new RolloverButton with an associated image
and tool tip.
Parameters: imgPath - the path relative to this class ofthe button icon image Parameters: tip - the button's tool tip |
RolloverButton | public RolloverButton()(Code) | | |
enableSelectionRollover | public void enableSelectionRollover(boolean enable)(Code) | | |
isFocusable | public boolean isFocusable()(Code) | | Override the isFocusable()
method of Component (JDK1.4) to
return false so the button never maintains
the focus.
false |
isSelectionRolloverEnabled | public boolean isSelectionRolloverEnabled()(Code) | | |
mouseEntered | public void mouseEntered(MouseEvent e)(Code) | | Paints the button's borders as the mouse pointer enters.
Parameters: e - the MouseEvent that created this event |
mouseExited | public void mouseExited(MouseEvent e)(Code) | | Sets the button's borders unpainted as the mouse
pointer exits.
Parameters: e - the MouseEvent that created this event |
reset | public void reset()(Code) | | Resets the buttons rollover state.
|
setButtonIcon | public void setButtonIcon(String path)(Code) | | Sets the image associated with the button.
Parameters: path - the path relative to this class ofthe button icon image |
|
|