Class RoundedPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class RoundedPanel extends JPanel
A rounded JPanel.
See Also:
  • Constructor Details

    • RoundedPanel

      public RoundedPanel()
      Create a RoundedPanel with a 10 point arc diameter and no border drawn.
    • RoundedPanel

      public RoundedPanel(int arc)
    • RoundedPanel

      public RoundedPanel(int arc, int thickness)
  • Method Details

    • getArcDiameter

      public int getArcDiameter()
      Returns:
      the arcDiameter
    • getInsets

      public Insets getInsets()
      Overrides:
      getInsets in class JComponent
    • setArcDiameter

      public void setArcDiameter(int arcDiameter)
      Parameters:
      arcDiameter - the arcDiameter to set
    • getInsetsThickness

      public int getInsetsThickness()
      Returns:
      the insetsThickness
    • setInsetsThickness

      public void setInsetsThickness(int insetsThickness)
      Parameters:
      insetsThickness - the insetsThickness to set
    • paintComponent

      public void paintComponent(Graphics g)
    • isShowBorder

      public boolean isShowBorder()
      Returns:
      the showBorder
    • setShowBorder

      public void setShowBorder(boolean showBorder)
      Parameters:
      showBorder - the showBorder to set