Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a custom loading screen in JavaFX?

Tags:

javafx

I'd like to create a custom loading screen for a JavaFX application. Don't want the user to see the Java coffee cup icon, I want to put my own graphic there!

I've found out how to provide a static image, or even an animated GIF, but I'm more interested in a Flash-like screen where I can specify what the state of the image looks like at certain percentages.

Any ideas?

like image 684
David Koelle Avatar asked Dec 11 '08 22:12

David Koelle


2 Answers

For JavaFX2, you can set a custom preloader. You have complete control over then scene. I haven't used them personally, but this might be what you want. http://docs.oracle.com/javafx/2/deployment/preloaders.htm

like image 128
Brian Blonski Avatar answered Oct 17 '22 08:10

Brian Blonski


If you're setting things up as shown on This blog entry, it looks like the answer would be 'no' - the loading graphic is just part of the overall options that are passed to the applet. Because this applet could be any java code (not just javaFX), there's no way to tie your custom renderer in.

like image 25
Atiaxi Avatar answered Oct 17 '22 10:10

Atiaxi