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 );