Package org.astonbitecode.j4rs.api.jfx
Class J4rsFxmlLoader
- java.lang.Object
-
- org.astonbitecode.j4rs.api.jfx.J4rsFxmlLoader
-
public class J4rsFxmlLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description J4rsFxmlLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FxControllerloadFxml(javafx.stage.Stage stage, String fxmlPath)Loads a FXML and returns anFxControllerfor it.
-
-
-
Method Detail
-
loadFxml
public static FxController loadFxml(javafx.stage.Stage stage, String fxmlPath) throws IOException, FxException
Loads a FXML and returns anFxControllerfor it.- Parameters:
stage- TheStageto load the FXML on.fxmlPath- The location of the FXML file.- Returns:
- A
FxControllerinstance. - Throws:
IOException- In case that the FXML cannot be loaded.FxException
-
-