split.setLeftComponent ( new GroupPanel ( GroupingType.fillLast, 0, false, toolBar, previewScroll ) );
//
final WebLabel label = new WebLabel ( "Just a label", WebLookAndFeel.getIcon ( 16 ) );
addViewComponent ( "JLabel", label, label, true );
//
final WebScrollBar hsb = new WebScrollBar ( WebScrollBar.HORIZONTAL, 45, 10, 0, 100 );
addViewComponent ( "JScrollBar (horizontal)", hsb, hsb, false );
//
final WebScrollBar vsb = new WebScrollBar ( WebScrollBar.VERTICAL, 45, 10, 0, 100 ).setPreferredHeight ( 100 );
addViewComponent ( "JScrollBar (vertical)", vsb, vsb, true );
//
final WebLabel scrollComponent = new WebLabel ();
scrollComponent.setPreferredSize ( new Dimension ( 1000, 600 ) );
scrollComponent.setFocusable ( true );
scrollComponent.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( final MouseEvent e )
{
scrollComponent.requestFocusInWindow ();
}
} );
final WebScrollPane sp = new WebScrollPane ( scrollComponent );
sp.setPreferredSize ( new Dimension ( 1, 100 ) );