Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.94 KB

extras.md

File metadata and controls

47 lines (30 loc) · 2.94 KB

Radiance look and feel - extras

Maven Central radiance-theming-extras

The extras module contains additional functionality that builds on top of the core Radiance module.

Color schemes

Additional color schemes are available under the org.pushingpixels.radiance.theming.extras.api.colorschemepack package. See the full list here.

Belize Bloody Moon

Painters

Additional fill and decoration painters are available under the org.pushingpixels.radiance.theming.extras.api.painterpack package.

Skins

Additional skins are available under the org.pushingpixels.radiance.theming.extras.api.skinpack package.

Office Blue 2007 Magma

Tab widgets

The org.pushingpixels.radiance.theming.extras.api.tabbed package provides three widgets that can be enabled for on JTabbedPanes in your application.

  • TabHoverPreviewWidget - will display a small thumbnail preview of tab contents when the mouse is hovering over the tab
  • TabOverviewDialogWidget - will display a button that brings an overview dialog with all the tab previews
  • TabPagerWidget - will display a floating 3-pane tab pager on Ctrl+Right and Ctrl+Left keystrokes

To enable a specific widget, use RadianceThemingCortex.GlobalScope.registerWidget API:

RadianceThemingCortex.GlobalScope.registerWidget(
     "org.pushingpixels.radiance.theming.extras.api.tabbed.TabHoverPreviewWidget",
     JTabbedPane.class, false)

As a result of this call, all JTabbedPane containers in your application (including those of classes that extend JTabbedPane - which is enabled by passing false as the last parameter) will display a small tab preview popup when the mouse hovers over one of the tabs.

Use RadianceExtrasCortex.ComponentScope.setTabPanePreviewPainter to configure the painter to be used to render preview thumbnails of tabs for the specific JTabbedPane. You can use DefaultTabPreviewPainter as is, or extend some of its functionality as required by your application.