Advertisement
javaprogrammer1996

interface.java

Sep 5th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package application;
  2.  
  3. import javafx.application.Application;
  4. import javafx.event.EventHandler;
  5. import javafx.fxml.FXMLLoader;
  6. import javafx.scene.Parent;
  7. import javafx.scene.Scene;
  8. import javafx.scene.input.InputEvent;
  9. import javafx.stage.Stage;
  10.  
  11. public class Interface extends Application implements EventHandler<InputEvent> {
  12.    
  13.     public static void main(String[] args) {
  14.         launch(args);
  15.          
  16.     }
  17.  
  18.     @Override
  19.     public void start(Stage primaryStage) throws Exception {
  20.        
  21.         Parent root = FXMLLoader.load(getClass().getResource("/fxml/Main.fxml"));
  22.         Scene scene = new Scene(root, 640, 400);
  23.        
  24.         primaryStage.setScene(scene);
  25.         primaryStage.setTitle("Black-Scholes Pricer (European Options) ");
  26.         primaryStage.setResizable(false);
  27.         primaryStage.show();
  28.        
  29.        
  30.     }
  31.  
  32.     @Override
  33.     public void handle(InputEvent arg0) {
  34.        
  35.     }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement