Search in sources :

Example 86 with FXMLLoader

use of javafx.fxml.FXMLLoader in project trex-stateless-gui by cisco-system-traffic-generator.

the class Initialization method initializeFXML.

public static void initializeFXML(Object object, String resourceName) {
    FXMLLoader fxmlLoader = new FXMLLoader(object.getClass().getResource(resourceName));
    fxmlLoader.setRoot(object);
    fxmlLoader.setController(object);
    try {
        fxmlLoader.load();
    } catch (IOException exception) {
        throw new RuntimeException(exception);
    }
}
Also used : IOException(java.io.IOException) FXMLLoader(javafx.fxml.FXMLLoader)

Aggregations

FXMLLoader (javafx.fxml.FXMLLoader)86 IOException (java.io.IOException)46 Scene (javafx.scene.Scene)30 Stage (javafx.stage.Stage)20 Parent (javafx.scene.Parent)19 BorderPane (javafx.scene.layout.BorderPane)16 Pane (javafx.scene.layout.Pane)13 StackPane (javafx.scene.layout.StackPane)13 URL (java.net.URL)12 FXML (javafx.fxml.FXML)10 ActionEvent (javafx.event.ActionEvent)8 List (java.util.List)7 File (java.io.File)6 Properties (java.util.Properties)6 ObservableList (javafx.collections.ObservableList)5 Node (javafx.scene.Node)5 JavaSVNManager (com.kyj.scm.manager.svn.java.JavaSVNManager)4 UncheckedIOException (java.io.UncheckedIOException)4 TextField (javafx.scene.control.TextField)4 MouseEvent (javafx.scene.input.MouseEvent)4