initial commit
This commit is contained in:
27
src/sample/Main.java
Normal file
27
src/sample/Main.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package sample;
|
||||
|
||||
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) throws Exception{
|
||||
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
|
||||
primaryStage.setTitle("KinoViewer");
|
||||
primaryStage.setScene(new Scene(root, 800, 600));
|
||||
primaryStage.setMinWidth(800);
|
||||
primaryStage.setMaxWidth(800);
|
||||
primaryStage.setMinHeight(600);
|
||||
primaryStage.setMaxHeight(600);
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user