java - how to check if javafx application is already running programatically? -


I am trying to run out of the scope of the application class to run a Java class application from a thread. The problem is that I am using the loop for a while to generate the application and whenever it is called twice, then it throws it illegally, so I need to know different ways if my other tasks To continue any ideas, the application is already running?

The only way you can do this is to catch IllegalStateException

You see JavaFX source code:

  if (launch collade.get endset (true)) {new invalid format expansion ("Application launch should not be called more than once") ; }  

Comments

Popular posts from this blog

GO: Serve static pages -

java - how to parse a JSON string into ObjectNode in Jackson? -

objective c - How to open front/back camera at the same time in iOS developing? -