JavaFX takes to open the first time [closed]

1

I have a relatively complex GUI class that inherits from Tab. When I create an instance of it, it builds the menus and GUI in direct code, without fxml . It uses icons in external png, but the program loads icons early.

The problem is that the first time we instantiate the class (using the constructor that calls the construct method), the program gives a significant stop, from then on all instances are extremely light, even going through the heavy method .

Being, I tried to make an empty constructor, but it continues with slowness the first time it uses the heavy method!

    
asked by anonymous 26.12.2015 / 20:09

0 answers