Viewport class sample code.
- Main GUI
- DialogWindow().launchAsync()
simple flow:
- create a component(VLL) within Viewport member which want to use scrollbar component(LabelListComponent).
- in constructor(VLL), addAndMakeVisible() and Viewport().setViewedComponent()
- add this component(VLL) to maincomponent(MainContentComponent) class and addAndMakeVisible() it.