// method will be removed from here
try
{
String splash;
splash = defaultProperties.getProperty( "splash.image" );
final ProgressView form = new ProgressView();
if( splash != null )
{
form.setFullScreenMode( true );
AppState.setScreenWidth( form.getWidth() );
AppState.setScreenHeight( form.getHeight() );
final Image image = Image.createImage(
getClass().getResourceAsStream( splash )
);
form.setImage( image );
form.setMeterPlacement( ProgressView.BOTTOM );
}
display.setCurrent( form );
Event.unregisterAll( Event.PROGRESS );
Event.register( form, Event.PROGRESS );
}
catch( Exception e )
{
Event.unregisterAll( Event.PROGRESS );
Event.register( new ProgressView(), Event.PROGRESS );
}
}