Class ScrollablePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class ScrollablePanel extends JPanel implements Scrollable
A flexible JPanel that implements the Scrollable interface, allowing for configurable scrolling behavior. This is useful for panels placed in a JScrollPane.
See Also:
  • Constructor Details

    • ScrollablePanel

      public ScrollablePanel()
      Default constructor. Initializes the panel for vertical scrolling, which is the most common use case.
    • ScrollablePanel

      public ScrollablePanel(int orientation)
      Creates a new ScrollablePanel with a specific scrolling orientation.
      Parameters:
      orientation - The scrolling orientation, either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL.
  • Method Details