DockTabFx

This lightweight docking library provides an easy-to-use docking solution built on top of standard JavaFX components.

docktabfx-demo-2x.gif

Getting Started

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.sireum</groupId>
        <artifactId>dock-tab-fx</artifactId>
        <version>1.1.0</version>
    </dependency>
</dependencies>

Gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'org.sireum:dock-tab-fx:1.1.0'
}

Sbt

resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "org.sireum" % "dock-tab-fx" % "1.1.0"

Usage

Add a DockablePane to the scene and add tabs as needed.

Example

public class Demo extends Application {

    @Override
    public void start(Stage stage) {
        final StackPane root = new StackPane();
        final DockablePane pane = new DockablePane();

        root.getChildren().add(pane);
        pane.addTab("tab01", new TextArea("tab 01"));
        pane.addTab("tab02", new Label("tab 02"));

        final Scene s = new Scene(root, 720, 480);
        stage.setScene(s);
        stage.show();
    }
}

For a hands-on demo, launch the interactive sandbox via its launcher.

License

Licensed under Apache Software License 2.0