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.


Constructor Index

 o Button(String)
Constructs a Button with the specified label.

Method Index

 o addActionListener(ActionListener)
 o getLabel()
Gets the label of the button.
 o getMinimumSize()
Gets the minimum size of this component.
 o paint(Graphics)
Paints the component.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o removeActionListener(ActionListener)
 o setLabel(String)
Sets the button with the specified label.

Constructors

 o Button
 public Button(String s)
Constructs a Button with the specified label.

Parameters:
label - the label of the button

Methods

 o paint
 public void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component
 o 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
 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o getLabel
 public String getLabel()
Gets the label of the button.

See Also:
setLabel
 o 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
 o 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