File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Displaying Splash Screen in NetBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Displaying Splash Screen in NetBeans" Watch "Displaying Splash Screen in NetBeans" New topic

Displaying Splash Screen in NetBeans

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Dear Ranchers,

I've done a program to display the image. It is working perfectly in Texpad and when i tried to execute it in Netbeans, it is not displaying the image..

The code is given below.

Please help me to work it out..


Aravind Prasad
Jonathan Janisch

Joined: Mar 17, 2007
Posts: 24
I'm just guessing without really looking at the code that it's not loading your image properly. When you run that particular code in NetBeans it expects to find the image in your project folder here:

images\1.jpg <---

Did you know that Java 6 has built in support for displaying splash screens?
[ August 14, 2007: Message edited by: Jonathan Janisch ]
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Thankyou very much sir..

the problem with me was only the image folder..
I put the image folder in src\images

When i put back in the root folder.. it is working fine.

Thank you very much for your help and support


Aravind Prasad
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Dear Sir,

When I use the above code and it is displaying well in the NetBeans and when i copy the dist folder and run it remotely, it is not working well. Please advise me how to bring the images when i run using

java - jar <filename>.jar


Aravind Prasad
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Did you copy the image file as well? Make sure the images/1.jpg is in the same directory as the JAR file.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Gera Levi

Joined: Jun 07, 2010
Posts: 3
you are just missing a "/" before the name of your package to use it from that direction bro, try


NOTE: Dashes are used the regular ones, not the inverted "\"

Try it out
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

Gera, did you notice this thread was 2.5 years old? The topic starter hasn't been around for months.

How To Ask Questions How To Answer Questions
Gera Levi

Joined: Jun 07, 2010
Posts: 3
mmm yeah that's what I thought, haha but you never know, by the way does this splash screen code actually works? 'cause now I'm having a big headaque with a splashscreen with progress bar, I've seen so many codes and topics, but never got lucky
I agree. Here's the link:
subject: Displaying Splash Screen in NetBeans
It's not a secret anymore!