Created
September 9, 2015 17:48
-
-
Save mobyvb/7e0874588e959dad2dff 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
import javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
import javafx.stage.Stage; | |
public class Test extends Application { | |
@Override public void start(Stage stage) throws Exception { | |
Parent root = FXMLLoader.load(getClass().getResource("test.fxml")); | |
Scene scene = new Scene(root, 300, 275); | |
stage.setTitle("FXML Welcome"); | |
stage.setScene(scene); | |
stage.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment