{
if ( filesCount == 0 && selectedFiles.size () > 0 )
{
stopAnimator ();
filesCount = selectedFiles.size ();
animator = new WebTimer ( "WebFileDrop.textFadeOutTimer", StyleConstants.animationDelay, new ActionListener ()
{
@Override
public void actionPerformed ( final ActionEvent e )
{
if ( dropTextOpacity > 0f )
{
dropTextOpacity -= 0.1f;
}
dropTextOpacity = Math.max ( dropTextOpacity, 0f );
WebFileDrop.this.repaint ();
if ( dropTextOpacity <= 0f )
{
animator.stop ();
}
}
} );
animator.start ();
}
else if ( filesCount > 0 && selectedFiles.size () == 0 )
{
stopAnimator ();
filesCount = selectedFiles.size ();
animator = new WebTimer ( "WebFileDrop.textFadeInTimer", StyleConstants.animationDelay, new ActionListener ()
{
@Override
public void actionPerformed ( final ActionEvent e )
{
if ( dropTextOpacity < 1f )