RBL JAVA Tips
Main page
Home
[ Search | Home Page | Index Java tips ]


PrevIndexNext
  • Many application show a "splash screen" on the start. With this image you can display some informations (author, version, ...)
    In java you can add a splash screen in your application in 5 or 10 lines.

  • I have write a free and open-source java component to do this.
    With "xPopup" component you can show an image on application startup and center this image on the screen.
    Sample :

  • Sample use in awtTips application.
       // Constructor... 
       awtTips() { 
    	int i = 2 ;   // 2 Wait 2 seconds... 
            // Splash screen... 
            xPopup spl = new xPopup("splash.jpg") ; 
            // Define application variables... 
            spl.set("awtTips", 
                    "2.00",
                    "BERTHOU R.",
                    "http://www.javaside.com/",
                    "webmaster@javaside.com"); 
            spl.run() ; 
            spl.setVisible(true) ; 
    
            // Your code... 
            // ... 
    
            // Wait 2 seconds (i) and hide
            spl.hide(i); 
            spl.dispose(); 
       } 
    

  • xPopup source xPopup.java
    Download awtTips.zip



Copyright © 1996..2003, BERTHOU. All right reserved.
Last change : 05 March 2003 18H20