Guest User

Untitled

a guest
Sep 9th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. package stringcalculator;
  2.  
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Parent;
  6. import javafx.scene.Scene;
  7. import javafx.stage.Stage;
  8.  
  9. public class StringCalculator extends Application {
  10.    
  11.     @Override
  12.     public void start(Stage stage) throws Exception {
  13.         Parent root = FXMLLoader.load(getClass().getResource("Gui.fxml"));
  14.        
  15.         Scene scene = new Scene(root);
  16.        
  17.         stage.setScene(scene);
  18.         stage.setResizable(false);
  19.         stage.sizeToScene();
  20.         stage.show();
  21.     }
  22.  
  23.     public static void main(String[] args) {
  24.         launch(args);
  25.     }
  26.    
  27. }
Add Comment
Please, Sign In to add comment