FFM-Friend_Face_Matching/src/main/java/dev/mateuszkowalczyk/ffm/Main.java

29 lines
716 B
Java

package dev.mateuszkowalczyk.ffm;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.net.URL;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
URL welcomePageUrl = getClass().getClassLoader().
getResource("welcomePage.fxml");
Parent welcomePage = FXMLLoader.load(welcomePageUrl);
primaryStage.setTitle("Friend Face Matcher");
primaryStage.setScene(new Scene(welcomePage));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}