javax.swing
Class AbstractButton

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.AbstractButton

public abstract class AbstractButton extends JComponent

Constructor Summary
AbstractButton()
           
 
Method Summary
 void addActionListener(ActionListener l)
          Adds an ActionListener to the button.
 void doClick()
          Programmatically perform a "click".
 int getHorizontalAlignment()
          Returns the horizontal alignment of the icon and text.
 int getHorizontalTextPosition()
          Returns the horizontal position of the text relative to the icon.
 String getText()
          Returns the button's text.
 int getVerticalAlignment()
          Returns the vertical alignment of the text and icon.
 int getVerticalTextPosition()
          Returns the vertical position of the text relative to the icon.
 boolean isSelected()
          Returns the state of the button.
 void setEnabled(boolean b)
          Enables (or disables) the button.
 void setHorizontalAlignment(int alignment)
          Sets the horizontal alignment of the icon and text.
 void setHorizontalTextPosition(int textPosition)
          Sets the horizontal position of the text relative to the icon.
 void setSelected(boolean b)
          Sets the state of the button.
 void setText(String text)
          Sets the button's text.
 void setVerticalAlignment(int alignment)
          Sets the vertical alignment of the icon and text.
 void setVerticalTextPosition(int textPosition)
          Sets the vertical position of the text relative to the icon.