Skip to content

Instantly share code, notes, and snippets.

@Shamrock-Frost
Created May 13, 2016 20:57
Show Gist options
  • Save Shamrock-Frost/4c4cab8f7cd933507aba96e7b2493ffc to your computer and use it in GitHub Desktop.
Save Shamrock-Frost/4c4cab8f7cd933507aba96e7b2493ffc to your computer and use it in GitHub Desktop.
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws IOException {
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.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