package application;
	
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Main extends Application {
    @Override
    public void start(Stage primaryStage) {
        try {
            // This path must match your folder in src/main/resources
            Parent root = FXMLLoader.load(getClass().getResource("/view/MainView.fxml"));
            Scene scene = new Scene(root);
            
            primaryStage.setTitle("YO THE KING!!!!");
            primaryStage.setScene(scene);
            primaryStage.show();
        } catch(Exception e) {
            // This will print errors to the console if the FXML can't load
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
}