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();
}
Aggregations