All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.Button
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.Button
- public class Button
- extends Component
A class that produces a labeled button component.
-
Button(String)
- Constructs a Button with the specified label.
-
addActionListener(ActionListener)
-
-
getLabel()
- Gets the label of the button.
-
getMinimumSize()
- Gets the minimum size of this component.
-
paint(Graphics)
-
Paints the component.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
removeActionListener(ActionListener)
-
-
setLabel(String)
- Sets the button with the specified label.
Button
public Button(String s)
- Constructs a Button with the specified label.
- Parameters:
- label - the label of the button
paint
public void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class Component
processMouseEvent
public void processMouseEvent(MouseEvent me)
- Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
- Overrides:
- processMouseEvent in class Component
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
getLabel
public String getLabel()
- Gets the label of the button.
- See Also:
- setLabel
setLabel
public void setLabel(String s)
- Sets the button with the specified label.
- Parameters:
- label - the label to set the button with
- See Also:
- getLabel
getMinimumSize
public Dimension getMinimumSize()
- Gets the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index