java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
cmpt213.assignment4.packagedeliveries.client.view.util.customUI.HeaderButton
All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class HeaderButton extends JButton
Custom button that is used in ColumnHeader. Inherits JButton.
See Also:
  • Field Details

    • clicked

      public boolean clicked
  • Constructor Details

    • HeaderButton

      public HeaderButton(String name, ActionListener al)
      Constructor for HeaderButton. Sets look and feel and certain JButton fields. Adds a MouseListener that helps with changing colours on hover.
      Parameters:
      name - Name and ActionCommand of the button
      al - ActionListener that button will add.
  • Method Details

    • changeClickStatus

      public void changeClickStatus()
      Updates the colour of the button on status change.