Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created September 30, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/6cca2918c1f92082d0e29ab7a4bf6bc5 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/6cca2918c1f92082d0e29ab7a4bf6bc5 to your computer and use it in GitHub Desktop.
package application;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
try {
BorderPane root = new BorderPane();
Scene scene = new Scene(root,400,400);
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.show();
} catch(Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
launch(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment