Using this method to load FXML content can cause confusion. It does not provide FXMLLoader with a location context, so callers cannot use the "@" prefix in attributes to specify relative resources.
Callers should instead use the no-arg version of the load() method. The FXMLLoader(URL) constructor or the setLocation() method can be used to specify the location of the content. The version of load() that takes an InputStream should first be deprecated and ultimately made private to avoid future confusion.
Callers should instead use the no-arg version of the load() method. The FXMLLoader(URL) constructor or the setLocation() method can be used to specify the location of the content. The version of load() that takes an InputStream should first be deprecated and ultimately made private to avoid future confusion.
- relates to
-
JDK-8092187 Deprecate static load() methods in FXMLLoader
-
- Open
-