Package privbot.ui.fx


@PublicApi package privbot.ui.fx
The settings studio: a JavaFX window hosted in Swing, shared by every plugin.

For a plain @ConfigItem config use FxStudioShell.forConfig(java.lang.String, java.lang.String, net.runelite.client.config.Config, net.runelite.client.config.ConfigManager): one tab per @ConfigSection, controls generated by FxConfigPageBuilder, live writes and the standard 960 x 720 size. Bespoke pages use FxStudioShell.builder() with standardSize(), addConfigSections(...) and addFxSection(...), building bodies from FxFormKit and the style classes in PrivBotFxStyles.

Threading: the window and its JFXPanel are created on the EDT, page bodies are built on the JavaFX thread the first time a tab is shown. Prime the toolkit with FxPlatformUtil before the first studio opens. Colours are tokens on .root in privbot-studio.css; never inline a colour. Guide: the SDK docs, Concepts (UI kit surfaces) and the overlays and UI cookbook.

  • Classes
    Class
    Description
    Modal configuration window: PrivBot studio chrome around embedded Swing content (tabbed forms, etc.).
    Annotation-driven settings page renderer — the "free studio" for any RuneLite-style Config.
    Lightweight descriptor of a @ConfigSection for nav wiring.
    Layout and styling helpers for PrivBot JavaFX settings pages.
    Wraps a TextArea in a column with a bottom drag grip so the user can resize height (compact default; does not auto-grow with text — content scrolls inside until extended).
    Same page chrome as FxSwingSection (title, subtitle, optional outer scroll) for pure JavaFX bodies.
    Cross-thread helpers for JavaFX embedded in Swing (e.g.
    The PrivBot settings studio: an ink masthead (brand mark, name, product, optional running pill), underlined section tabs, a large page heading, a scrolling workspace and a footer with the actions — the workspace look Elorin Wilderness Slayer introduced, shared by every plugin.
    Describes a studio; FxStudioShell.Builder.build() creates the window (hidden) on the EDT.
    Wraps legacy Swing settings panels in JavaFX page chrome (title, subtitle, scroll).
    Shared PrivBot JavaFX stylesheet and style-class tokens (studio / settings shell).