Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package guifx;
- import javafx.application.Application;
- import javafx.scene.control.Tab;
- import javafx.scene.control.TabPane;
- import javafx.scene.control.TabPane.TabClosingPolicy;
- import javafx.scene.layout.BorderPane;
- import javafx.stage.Stage;
- import application.controller.Controller;
- import javafx.scene.Scene;
- import application.model.Extras;
- import application.model.Companion;
- import application.model.Conference;
- import application.model.Excursion;
- import application.model.Hotel;
- import application.model.Participant;
- import application.model.Registration;
- public class MainApp extends Application {
- public static void main(String[] args) {
- Application.launch(args);
- }
- @Override
- public void start(Stage primaryStage) throws Exception {
- // TODO Auto-generated method stub
- }
- private void initContent(BorderPane pane) {
- TabPane tabPane = new TabPane();
- this.initTabPane(tabPane);
- pane.setCenter(tabPane);
- }
- private void initTabPane(TabPane tabPane) {
- tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
- Tab tabHome = new Tab("Home");
- tabPane.getTabs().add(tabHome);
- HomePane homePane = new HomePane();
- tabHome.setContent(homePane);
- Tab tabConference = new Tab("Conference");
- tabPane.getTabs().add(tabConference);
- ConferencePane conferencePane = new ConferencePane();
- tabConference.setContent(conferencePane);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement