Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7550299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:10:34+00:00 2026-05-30T10:10:34+00:00

Our maven/Netbeans platform application uses a custom image on startup, by replacing Nbm-branding >

  • 0

Our maven/Netbeans platform application uses a custom image on startup, by replacing

Nbm-branding > core.jar > org.netbeans.core.startup > splash.gif

I tried making it an animated .gif, but only the first frame is displayed.

How would one possibly go about implementing an animated splash screen, maybe by running some JavaFX window animations?

I’ve seen another other SO question, but it wasn’t really answered – please notice I’m asking about how to integrate a custom splash screen with my Netbeans Platform application, and not how to actually build it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:10:35+00:00Added an answer on May 30, 2026 at 10:10 am

    Surprisingly enough, I found out how to plug in a custom splash screen based on this post about user authentication and authorization.

    Basically, one needs to write another start-up class, instead of the platform’s default:

    import java.lang.reflect.Method;
    
    public class CustomStartup {
    
        private static final String NB_MAIN_CLASS = "org.netbeans.core.startup.Main";
    
        public static void main(String[] args) throws Exception {
            // do whatever you need here (e.g. show a custom login form)
            System.out.println("Hello world! I am a custom startup class");
            JWindow splash = initSplash();
    
            // once you're done with that, hand control back to NetBeans
            ClassLoader classloader = Thread.currentThread().getContextClassLoader();
            Class<?> mainClass = Class.forName(NB_MAIN_CLASS, true, classloader);
    
            Object mainObject = mainClass.newInstance();
            Method mainMethod = mainClass.getDeclaredMethod("main", new Class[]{String[].class});
            mainMethod.invoke(mainObject, (Object) args);
    
            splash.setVisible(false);
        }
    }
    

    In that class, one can create a JavaFX stage, embed it into a JWindow, and show it:

    public JWindow initSplash(){
           JWindow window = new JWindow();
           final JFXPanel fxPanel = new JFXPanel();
           window.add(fxPanel);
           window.setVisible(true);
           window.setLocationRelativeTo(null);
    
            Platform.runLater(new Runnable() {
    
                @Override
                public void run() {
                    Scene scene = new Scene(new CustomFxSplash(), 475, 300, true);
                    fxPanel.setScene(scene);
                }
            }
           return window;
    }
    

    Other things to remember are:

    • Suppress the original NetBeans splash screen by running your app with the --nosplash parameter.

    • Call your custom initialization class by running your app with the -J-Dnetbeans.mainclass=com.package.splash.CustomStartup parameter

    • As the link suggests this custom class has to be on the platform’s initialization classpath, meaning inside the platform/core folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this in our pom <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <executions> <execution> <id>assembly</id> <phase>package</phase>
We have a netbeans-platform application, that creates a custom runnable .exe with the default
If our group uses Maven, will it promote IDE independence? NetBeans generates a lot
We recently started using maven for dependency management. Our team uses eclipse as it's
I just converted one of our web projects from NetBeans ANT to Maven 2
Our shop uses Nexus to proxy for Maven Central and several other repositories. From
Can anyone recommend a good hosting provider where we can host our Maven 2
I am installing to Maven repository our internal files using mvn install:install command. All
Our proxy went down and I tried to update dependencies with Maven while it
We are using JUnit - Selenium for our web tests. We use Maven to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.