Search in sources :

Example 1 with DockTabPane

use of com.kyj.fx.voeditor.visual.component.dock.tab.DockTabPane in project Gargoyle by callakrsos.

the class DockTabPaneExam method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    DockTabPane dockTabPane = new DockTabPane();
    dockTabPane.setSide(Side.LEFT);
    {
        DockTab e = new DockTab("Hello1");
        e.setContent(new Label("Hello world!1"));
        dockTabPane.getTabs().add(e);
    }
    {
        DockTab e = new DockTab("Hello2");
        e.setContent(new Label("Hello world!2"));
        dockTabPane.getTabs().add(e);
    }
    {
        DockTab e = new DockTab("Hello3");
        e.setContent(new Label("Hello world!3"));
        dockTabPane.getTabs().add(e);
    }
    DockPane.initializeDefaultUserAgentStylesheet();
    primaryStage.setScene(new Scene(dockTabPane));
    primaryStage.show();
}
Also used : DockTabPane(com.kyj.fx.voeditor.visual.component.dock.tab.DockTabPane) DockTab(com.kyj.fx.voeditor.visual.component.dock.tab.DockTab) Label(javafx.scene.control.Label) Scene(javafx.scene.Scene)

Aggregations

DockTab (com.kyj.fx.voeditor.visual.component.dock.tab.DockTab)1 DockTabPane (com.kyj.fx.voeditor.visual.component.dock.tab.DockTabPane)1 Scene (javafx.scene.Scene)1 Label (javafx.scene.control.Label)1