Advertisement
iamaamir

Advance Binding in JavaFx

Jul 21st, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1.  
  2. import java.io.IOException;
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Scene;
  6. import javafx.scene.layout.VBox;
  7. import javafx.stage.Stage;
  8.  
  9. /**
  10.  *
  11.  * @author toffe boy Aamir
  12.  *
  13.  * dependency class UIController is here → http://pastebin.com/4bZtLj7W
  14.  */
  15. public class AdvanceBinding extends Application {
  16.    
  17.    
  18.    
  19.     @Override
  20.     public void start(Stage primaryStage) {
  21.         VBox pane;
  22.         FXMLLoader loader = new FXMLLoader();
  23.         try {
  24.             loader.setLocation(AdvanceBinding.class.getResource("UI.fxml"));//UI.fxml is here → http://pastebin.com/mS7AGi8a
  25.             pane = (VBox)loader.load();
  26.         Scene scene = new Scene(pane);
  27.         primaryStage.setScene(scene);
  28.         } catch (IOException e) {
  29.             e.printStackTrace();
  30.         }
  31.         primaryStage.setTitle("Binding Demo");
  32.         primaryStage.show();
  33.     }
  34.  
  35.     /**
  36.      * @param args the command line arguments
  37.      */
  38.     public static void main(String[] args) {
  39.         launch(args);
  40.     }
  41.    
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement