progress.setVisible ( false );
}
private JComponent createBackgroundPanel ()
{
final WebImage wi = new WebImage ( WebLookAndFeelDemo.class, "icons/text.png" )
{
@Override
protected void paintComponent ( final Graphics g )
{
final Graphics2D g2d = ( Graphics2D ) g;
g2d.setPaint ( new LinearGradientPaint ( 0, 0, 0, getHeight (), new float[]{ 0f, 0.4f, 0.6f, 1f },
new Color[]{ StyleConstants.bottomBgColor, Color.WHITE, Color.WHITE, StyleConstants.bottomBgColor } ) );
g2d.fill ( g2d.getClip () != null ? g2d.getClip () : getVisibleRect () );
super.paintComponent ( g );
}
};
wi.setDisplayType ( DisplayType.preferred );
wi.setHorizontalAlignment ( SwingConstants.CENTER );
wi.setVerticalAlignment ( SwingConstants.CENTER );
return wi;
}