Search in sources :

Example 1 with DockPane

use of com.kyj.fx.voeditor.visual.component.dock.pane.DockPane in project Gargoyle by callakrsos.

the class DockPaneExam method start.

/* (non-Javadoc)
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
@Override
public void start(Stage primaryStage) throws Exception {
    DockNode dockNode = new DockNode(new BorderPane(new Label("Master")), "hello m");
    DockNode dockNode2 = new DockNode(new BorderPane(new Label("Slave")), "hello s");
    //		SplitPane root = new SplitPane();
    DockPane dockPane = new DockPane();
    dockNode2.dock(dockPane, DockPos.CENTER);
    dockNode.dock(dockPane, DockPos.LEFT);
    //		root.getItems().add(dockPane);
    Application.setUserAgentStylesheet(Application.STYLESHEET_MODENA);
    DockPane.initializeDefaultUserAgentStylesheet();
    primaryStage.setScene(new Scene(dockPane));
    primaryStage.show();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) DockPane(com.kyj.fx.voeditor.visual.component.dock.pane.DockPane) Label(javafx.scene.control.Label) DockNode(com.kyj.fx.voeditor.visual.component.dock.pane.DockNode) Scene(javafx.scene.Scene)

Aggregations

DockNode (com.kyj.fx.voeditor.visual.component.dock.pane.DockNode)1 DockPane (com.kyj.fx.voeditor.visual.component.dock.pane.DockPane)1 Scene (javafx.scene.Scene)1 Label (javafx.scene.control.Label)1 BorderPane (javafx.scene.layout.BorderPane)1