Javafx takes time to open the first time

Asked

Viewed 87 times

1

I have a relatively complex GUI class that I inherit 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 the icons at the beginning.

The problem is that the whole first time I instate the class (using the constructor calling the construction method), the program gives a significant halt, henceforth, all instances are extremely light, even going through the heavy method.

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.