Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import javafx.application.Application;
  2. import javafx.fxml.FXMLLoader;
  3. import javafx.scene.Parent;
  4. import javafx.scene.Scene;
  5. import javafx.stage.Stage;
  6. public class Main extends Application {
  7. @Override
  8. public void start(Stage primaryStage) throws Exception{
  9. Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
  10. primaryStage.setTitle("Hello World");
  11. primaryStage.setScene(new Scene(root, 300, 275));
  12. primaryStage.show();
  13. }
  14. public static void main(String[] args) {
  15. launch(args);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement