*/
@Override
public Component getPreview ( final WebLookAndFeelDemo owner )
{
// Simple BorderPainter
final WebLabel l1 = new WebLabel ( "Simple border painter" );
l1.setPainter ( new WebLabelPainter ( new BorderPainter () ) ).setMargin ( 10 );
// Customized BorderPainter
final WebLabel l2 = new WebLabel ( "Customized border painter" );
final BorderPainter bp2 = new BorderPainter ();
bp2.setRound ( 12 );
bp2.setWidth ( 2 );
bp2.setColor ( new Color ( 39, 95, 173 ) );
l2.setPainter ( new WebLabelPainter ( bp2 ) ).setMargin ( 10 );
// Simple DashedBorderPainter
final WebLabel l3 = new WebLabel ( "Dashed border painter" );
l3.setPainter ( new WebLabelPainter ( new DashedBorderPainter () ) ).setMargin ( 10 );
// Customized DashedBorderPainter
final WebLabel l4 = new WebLabel ( "Customized dashed border painter" );
final DashedBorderPainter bp4 = new DashedBorderPainter ( new float[]{ 3f, 3f } );
bp4.setRound ( 12 );
bp4.setWidth ( 2 );
bp4.setColor ( new Color ( 39, 95, 173 ) );
l4.setPainter ( new WebLabelPainter ( bp4 ) ).setMargin ( 10 );
// Simple TitledBorderPainter
final WebLabel l5 = new WebLabel ( "Titled border painter" );
l5.setPainter ( new WebLabelPainter ( new TitledBorderPainter ( "Title" ) ) ).setMargin ( 5 );
// Customized TitledBorderPainter
final WebLabel l6 = new WebLabel ( "Customized titled border painter" );
final TitledBorderPainter bp6 = new TitledBorderPainter ( "Title", SwingConstants.CENTER );
bp6.setWidth ( 5 );
bp6.setRound ( 12 );
bp6.setStroke ( new ZigzagStroke ( 2f, 2f ) );
l6.setPainter ( new WebLabelPainter ( bp6 ) ).setMargin ( 5 );
return new GroupPanel ( 4, false, new GroupPanel ( 4, l1, l2 ), new GroupPanel ( 4, l3, l4 ), new GroupPanel ( 4, l5, l6 ) );
}