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();
}
Aggregations