Class button

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class button extends JButton
Custom Button
See Also:
  • Constructor Details

    • button

      public button()
      Constructor to create a new Button Set the color darker when the user enter the button and reset it if the user exit or press the button
  • Method Details

    • paint

      public void paint(Graphics grphcs)
      Override the paint method of the button to create round corners with diameter of 20
      Overrides:
      paint in class JComponent
      Parameters:
      grphcs -