Class buttonsidebar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class buttonsidebar extends JPanel
Custom Button of the Navbar
See Also:
  • Constructor Details

    • buttonsidebar

      public buttonsidebar()
      Constructor to create an new button
  • Method Details

    • deactivate

      public void deactivate()
      method gets called when we press another button on the navbar sets the button to default color
    • getNormalColor

      public Color getNormalColor()
      Get NormalColor
      Returns:
    • setNormalColor

      public void setNormalColor(Color normalColor)
      Set NormalColor
      Parameters:
      normalColor -
    • getActivated

      public boolean getActivated()
      Get activated
      Returns:
    • setActivated

      public void setActivated(boolean activated)
      Set activated
      Parameters:
      activated -
    • getRound

      public int getRound()
      Get round
      Returns:
    • setRound

      public void setRound(int round)
      Set round
      Parameters:
      round -
    • paint

      public void paint(Graphics g)
      Override the paint method of the panel to create round corners
      Overrides:
      paint in class JComponent
      Parameters:
      g -