@Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("Asystent Inwestora");
        
        primaryStage.setMinHeight(600);
        primaryStage.setMinWidth(800);
        primaryStage.setMaximized(true);
        
//        primaryStage.setFullScreen(true);
        
        tabs = CreateTabs();

        BorderPane borderPane = new BorderPane();
        

        borderPane.setTop(tabs);

        for (InvestorView v : views) {
            v.InitView();
        }

        borderPane.setCenter(marketIndicicesView.getPane());

        //Event handler do zakładek. 
        tabs.getSelectionModel().selectedItemProperty().addListener(
                new ChangeListener<Tab>() {
                    @Override
                    public void changed(ObservableValue<? extends Tab> ov, Tab t, Tab t1) {
                        if (t1 == marketIndices) {
                            borderPane.setCenter(marketIndicicesView.getPane());
                        } else if (t1 == companies) {
                            borderPane.setCenter(companiesView.getPane());
                        } else if (t1 == currencies) {
                            borderPane.setCenter(currenciesView.getPane());
                        } else if (t1 == goods) {
                            borderPane.setCenter(goodsView.getPane());
                        }
//                        } else if (t1 == currenciesCorrelations) {
//                            borderPane.setCenter(currenciesCorrelationView.getPane());
//                        }
                    }
                }
        );

        Scene scene = new Scene(borderPane, 800, 450);
        primaryStage.setScene(scene);

        //scene.getStylesheets().add(MainMenu.class.getResource("login.css").toExternalForm());
        primaryStage.show();
    }