Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. package guifx;
  2.  
  3. import javafx.application.Application;
  4. import javafx.scene.control.Tab;
  5. import javafx.scene.control.TabPane;
  6. import javafx.scene.control.TabPane.TabClosingPolicy;
  7. import javafx.scene.layout.BorderPane;
  8. import javafx.stage.Stage;
  9. import application.controller.Controller;
  10. import javafx.scene.Scene;
  11. import application.model.Extras;
  12. import application.model.Companion;
  13. import application.model.Conference;
  14. import application.model.Excursion;
  15. import application.model.Hotel;
  16. import application.model.Participant;
  17. import application.model.Registration;
  18.  
  19.  
  20.  
  21. public class MainApp extends Application {
  22.  
  23. public static void main(String[] args) {
  24. Application.launch(args);
  25.  
  26. }
  27.  
  28. @Override
  29. public void start(Stage primaryStage) throws Exception {
  30. // TODO Auto-generated method stub
  31.  
  32. }
  33.  
  34. private void initContent(BorderPane pane) {
  35. TabPane tabPane = new TabPane();
  36. this.initTabPane(tabPane);
  37. pane.setCenter(tabPane);
  38. }
  39.  
  40. private void initTabPane(TabPane tabPane) {
  41. tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
  42.  
  43. Tab tabHome = new Tab("Home");
  44. tabPane.getTabs().add(tabHome);
  45.  
  46. HomePane homePane = new HomePane();
  47. tabHome.setContent(homePane);
  48.  
  49. Tab tabConference = new Tab("Conference");
  50. tabPane.getTabs().add(tabConference);
  51.  
  52. ConferencePane conferencePane = new ConferencePane();
  53. tabConference.setContent(conferencePane);
  54. }
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement