package org.cybuch.jbot.gui;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
public class JBot extends Application {
private Stage primaryStage;
private AnchorPane rootLayout;
@Override
public void start(Stage primaryStage) {
this.primaryStage = primaryStage;
this.primaryStage.setTitle("jBot");
try {
FXMLLoader loader = new FXMLLoader(
JBot.class.getResource("Main.fxml"));
rootLayout = (AnchorPane) loader.load();
Scene scene = new Scene(rootLayout);
primaryStage.setScene(scene);
primaryStage.show();
primaryStage.setResizable(false);
} catch (Exception e) {
e.printStackTrace();
return;
}
}
public static void main(String[] args) {
launch(args);
}
}