Update Application.java
This commit is contained in:
@@ -26,11 +26,16 @@ public class Application extends javafx.application.Application {
|
|||||||
* @param url which is being loaded.
|
* @param url which is being loaded.
|
||||||
* @return parent object.
|
* @return parent object.
|
||||||
*/
|
*/
|
||||||
public static Parent load(java.net.URL url) throws IOException {
|
public static Parent load(java.net.URL url) {
|
||||||
FXMLLoader loader = new FXMLLoader();
|
FXMLLoader loader = new FXMLLoader();
|
||||||
loader.setControllerFactory(springContext::getBean);
|
loader.setControllerFactory(springContext::getBean);
|
||||||
loader.setLocation(url);
|
loader.setLocation(url);
|
||||||
return loader.load();
|
try {
|
||||||
|
return loader.load();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user