# Standalone toolbar and status bar Use JavaFX's `ToolBar` for toolbar content and NeitzelLib's `de.neitzel.fx.control.StatusBar` for left/right status content. Both accept ordinary application Nodes. They work in Java and ordinary FXML without a DockingManager, ViewLoader, ViewModel or initialized injection context. Use JavaFX's `ToolBar` directly for permanent bars. `ToolBarPane` hosts a horizontal JavaFX toolbar and adds an optional × at its left edge, outside the overflow menu. Set `dismissible` to show the button. Clicking it hides the pane and calls `onDismiss` if supplied. Bind `managedProperty()` to `visibleProperty()` when a hidden pane should release its layout space. Show the pane again with `setVisible(true)`. Its items are retained. ## Java ```java var save = new Button("Save"); var toolbar = new ToolBar(save); var status = new Label("Ready"); var cursor = new Label(); cursor.textProperty().bind(editor.caretPositionProperty().asString("Offset %d")); var progress = new ProgressBar(); progress.progressProperty().bind(completedFraction); var statusBar = new StatusBar(); statusBar.getLeftItems().add(status); statusBar.getRightItems().addAll(cursor, progress); shell.setTop(toolbar); shell.setBottom(statusBar); ``` `getLeftItems()` and `getRightItems()` return live observable lists. Items retain their identity, properties and event handlers. Add, remove and reorder items on the JavaFX Application Thread. Ordinary JavaFX scene-graph ownership rules apply: a Node can appear in only one place at a time. Removing an item from its list detaches it; the application owns its resources and bindings. The left group stays at the left edge and the right group at the right edge while there is available space between them. A status bar's preferred size comes from its content. Parent layouts can stretch it to the window width. ## FXML ```xml