Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Splash Screen with NetBeans

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Splash Screen with NetBeans

    Hi,

    I wanted to add a simple .gif as Splash Screen to my application. I'm using NetBeans and I've seen there are lots of bugs when doing this with it.

    I've tried to add the line SplashScreen-Image: to the manifest.mf file and -splash: at the run properties of my project (as I've read this last thing is only when running it from the IDE). But it only works on the IDE, my .jar does not show any splash screen. In fact, I opened the manifest.mf file compiled in the resulting .jar and it does not show the SplashScree-Image line.

    I also tried to add it with the Netbeans option for it, but it does not work.

    What can I do? Maybe another way to compile the project? I think I have tried everything and nothing worked for me...

    Thank you so much and I hope this is the right section in the forum to post this.


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Splash Screen with NetBeans

    Post a SSCCE to show how you are handling the splash screen so we can see what is happening.

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Splash Screen with NetBeans

    To show the SplashScreen I added the SplashScreen-Image line to my manifest.mf:

    Manifest-Version: 1.0
    SplashScreen-Image: resource/img/splash.gif
    X-COMMENT: Main-Class will be added automatically by build

    The MANIFEST.MF compiled into the META-INF folder of the resulting .jar is like this:

    Manifest-Version: 1.0
    implementation-vendor: guilledi
    JavaFX-Version: 2.2
    implementation-title: Project
    implementation-version: 1.0
    JavaFX-Application-Class: project.Main
    JavaFX-Class-Path: JavaFXApplication4.jar
    Created-By: JavaFX Packager
    Main-Class: com/javafx/main/Main
     
    Name: resource/img/splash.gif
    SHA-256-Digest: OB8dBDuP/hwaxN/Z7AIVNXkL9oQOS9upIPiDgI8Er48=

    (There were more resources but they are not relevant)

    As you see the final MANIFEST.MF does not include the SplashScreen line. I think it's a compiler problem, maybe there is a way to edit the file in the .jar but I don't know how to do it.

  4. #4
    Junior Member
    Join Date
    Nov 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Re: Splash Screen with NetBeans

    After several weeks trying to get it, I downloaded NetBeans 7.4. There you can add Custom Manifest Attributes in the Project Preferences, so I finally could make it and it's solved. Thank you

Similar Threads

  1. JAVA SPLASH SCREEN
    By kvv230892 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 18th, 2012, 07:48 AM
  2. Screen Blur
    By Ludicrous in forum Java Theory & Questions
    Replies: 2
    Last Post: April 1st, 2012, 10:34 AM
  3. Clearing the screen
    By ranjithfs1 in forum Java Theory & Questions
    Replies: 4
    Last Post: March 19th, 2012, 10:04 AM
  4. Replies: 9
    Last Post: December 31st, 2011, 01:22 AM
  5. Screen Resolution
    By bartonn in forum Member Introductions
    Replies: 2
    Last Post: December 16th, 2010, 06:49 AM

Tags for this Thread