Results 1 to 2 of 2
  1. #1
    goklien is offline Member
    Join Date
    Jan 2011
    Location
    Bandung, Indonesia
    Posts
    6
    Rep Power
    0

    Default Splash screen problem

    hey all..

    so i been trying to make a splash screen for my java application on netbeans..i build my application in java desktop application..

    here is the way i tried :

    first i make new jFrame class (SplashScreen.java) and put my png picture on it for the splash screen..and this single class file works

    then i add this script in main.java to make this splash screen work on application :

    SplashScreen splash = new SplashScreen();
    splash.setLocationRelativeTo(null);
    splash.setVisible(true);

    try {
    Thread.sleep(3000);
    }
    catch (interruptedException e){
    }
    and when i run the application the splash screen frame appear..but the frame is empty..i cant see my png picture on it :\

    whats wrong with this? anyone can help please

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,173
    Rep Power
    20

    Default

    Have you read the article/tutorial on SpalshScreen? Unless you are using an earlier version of Java.

Similar Threads

  1. Splash Screen How?
    By bircastri in forum AWT / Swing
    Replies: 1
    Last Post: 11-16-2010, 05:51 PM
  2. Splash Screen
    By madcommu in forum SWT / JFace
    Replies: 4
    Last Post: 09-18-2010, 02:14 PM
  3. splash screen
    By joypik in forum AWT / Swing
    Replies: 1
    Last Post: 07-13-2010, 08:48 PM
  4. Splash Screen
    By Doctor Cactus in forum New To Java
    Replies: 1
    Last Post: 10-29-2008, 07:42 PM
  5. A simple Splash screen
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •