nl.coderight.jazz
Class SplashScreen

java.lang.Object
  extended by nl.coderight.jazz.SplashScreen

public class SplashScreen
extends Object

Provides a splash screen during application startup.

When auto close is true (default), the SplashScreen closes when the first View becomes visible.

 Example usage:
 
 public class SimpleApp extends Application {   
 
        public SimpleApp() {
                SplashScreen splashScreen = new SplashScreen();
                splashScreen.setImage(JazzUtil.getResourceAsImage("jazz-logo.jpg"));
                splashScreen.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
                setSplashScreen(splashScreen);
  }
 } 
 

See Also:
Application.setSplashScreen(SplashScreen splashScreen), Application.showSplashScreen(), Application.hideSplashScreen()

Constructor Summary
SplashScreen()
           
 
Method Summary
 JPanel getComponent()
           
 boolean isAutoClose()
          Returns auto close option.
 void setAutoClose(boolean autoClose)
          Sets auto close option.
 void setBorder(Border border)
           
 void setImage(Image image)
          Sets the splash screen image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplashScreen

public SplashScreen()
Method Detail

getComponent

public JPanel getComponent()

setImage

public void setImage(Image image)
Sets the splash screen image.

Parameters:
image -

setBorder

public void setBorder(Border border)

isAutoClose

public boolean isAutoClose()
Returns auto close option.

Returns:
boolean (true is auto close)

setAutoClose

public void setAutoClose(boolean autoClose)
Sets auto close option. If true splash screen closes after first view becomes visible.

Parameters:
autoClose - (true is auto close)


Copyright 2010 CodeRight, All rights reserved.