This lightweight docking library provides an easy-to-use docking solution built on top of standard JavaFX components.
<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>
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'org.sireum:dock-tab-fx:1.1.0'
}
resolvers += "jitpack" at "https://jitpack.io"
libraryDependencies += "org.sireum" % "dock-tab-fx" % "1.1.0"
Add a DockablePane to the scene and add tabs as needed.
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.
Licensed under Apache Software License 2.0