Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Splash Screen

Sun Apr 17, 2011 5:28 pm

i am need to create a Splash Screen for my java Application...
My application in designed in IDE Netbeans 6.8
Can any one have idea how to create Splash Screen?




Re: Splash Screen

Mon Apr 18, 2011 11:55 pm

what about progress bar .
or you want only to have image while loading something .

Re: Splash Screen

Thu Apr 21, 2011 3:18 am

msi_333 wrote:what about progress bar .
or you want only to have image while loading something .



Ya need that too...

Re: Splash Screen

Mon Apr 25, 2011 3:15 am

ya need both , Splash Screen along with progress bar...

Re: Splash Screen

Mon Apr 25, 2011 2:50 pm

To create a progress bar :
Code:

JProgressBar progessObj 
= new JProgressBar();
 

java-gui/progress-dialog-t6906.html

to draw a image just use the paint function to put image ,
Code:

import java
.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.JFrame;

public class 
FrameImage extends JFrame {

    public 
FrameImage(){
        
setSize(500,500);
        
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
setVisible(true);
    }
    @
Override
    
public void paint(Graphics g) {
        
Graphics2D g2 = (Graphics2Dg;

        
Image img1 Toolkit.getDefaultToolkit().getImage("image.gif");
        
// draw the image at postion 0,0
        
g2.drawImage(img100this);
        
g2.finalize();
    }
    

}
 


Re: Splash Screen

Mon Apr 25, 2011 4:34 pm

I was also trying to create splash screen but unable cause i don't have enough knowledge but now i read all the codes very carefully from sir msi_333 and now i will try them.

thanks

Post a reply
  Related Posts  to : Splash Screen
 Screen Capture and multicast     -  
 full Screen Graphics     -  
 My Header is Not Fitting to the Screen!     -  
 MacBook Pro Turned Into a Blue Screen     -  
 Full Screen graphics (Lesson 2).     -  
 how to screen scrape or grab some parts of a website?     -