public interface FxmlController
The initialize() method is called by the JavaFX Platform after all the component's subcomponents
have been loaded and are ready for usage.
Never use the constructor to do any more than dependency injection as the components are not guaranteed to have been
loaded yet and generally result in the infamous NullPointerException.
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
This method is automatically called by the JavaFX
Platform as soon as all the components are loaded (not
necessarily rendered). |
void initialize()
Platform as soon as all the components are loaded (not
necessarily rendered). This is where initial UX/UI setup should be done (enabling, disabling hiding etc...)
Calling it from the constructor is a hazard and will generally cause failures.
Copyright © 2018. All rights reserved.