Search in sources :

Example 1 with FileBaseDiffAppController

use of com.kyj.fx.voeditor.visual.component.FileBaseDiffAppController in project Gargoyle by callakrsos.

the class FileCompareExam method start.

@Override
public void start(Stage primaryStage) throws Exception {
    FXMLLoader loader = new FXMLLoader();
    loader.setLocation(DiffAppController.class.getResource("FileBaseDiffApp.fxml"));
    BorderPane load = loader.load();
    FileBaseDiffAppController controller = loader.getController();
    URL resource1 = FileCompareExam.class.getResource("Test1");
    URL resource2 = FileCompareExam.class.getResource("Test2");
    File ordinalFile = new File(resource1.toURI());
    controller.setDiffFile(ordinalFile, new File(resource2.toURI()));
    Scene scene = new Scene(load);
    primaryStage.setScene(scene);
    primaryStage.show();
}
Also used : FileBaseDiffAppController(com.kyj.fx.voeditor.visual.component.FileBaseDiffAppController) DiffAppController(com.kyj.fx.voeditor.visual.component.DiffAppController) FileBaseDiffAppController(com.kyj.fx.voeditor.visual.component.FileBaseDiffAppController) BorderPane(javafx.scene.layout.BorderPane) Scene(javafx.scene.Scene) FXMLLoader(javafx.fxml.FXMLLoader) File(java.io.File) URL(java.net.URL)

Aggregations

DiffAppController (com.kyj.fx.voeditor.visual.component.DiffAppController)1 FileBaseDiffAppController (com.kyj.fx.voeditor.visual.component.FileBaseDiffAppController)1 File (java.io.File)1 URL (java.net.URL)1 FXMLLoader (javafx.fxml.FXMLLoader)1 Scene (javafx.scene.Scene)1 BorderPane (javafx.scene.layout.BorderPane)1