@Override
	public Dimension getPreferredScrollableViewportSize() {
		return new Dimension( getPreferredSize().width, UIScale.scale( 400 ) );
	}
A panel that implements the {@link Scrollable} interface.

@author Karl Tauber
flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/ScrollablePanel.java