Created
August 19, 2016 22:40
-
-
Save rterp/7604de9d553674c7e9a4469fdb13bdf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.lynden.gmaps.directions; | |
import javafx.application.Application; | |
import static javafx.application.Application.launch; | |
import javafx.fxml.FXMLLoader; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
import javafx.stage.Stage; | |
public class MainApp extends Application { | |
@Override | |
public void start(Stage stage) throws Exception { | |
Parent root = FXMLLoader.load(getClass().getResource("/fxml/Scene.fxml")); | |
Scene scene = new Scene(root); | |
scene.getStylesheets().add("/styles/Styles.css"); | |
stage.setTitle("JavaFX and Maven"); | |
stage.setScene(scene); | |
stage.show(); | |
} | |
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