Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 2.85 KB

extras.md

File metadata and controls

47 lines (29 loc) · 2.85 KB

Substance look and feel - extras

Maven Central radiance-substance-extras

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

Color schemes

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

Belize Bloody Moon

Painters

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

Watermarks

The org.pushingpixels.substance.extras.api.watermarkpack package provides a collection of watermarks. It is highly recommended to read relevant entries in the FAQ and consider performance implications of additional rendering required to use watermarks.

Skins

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

Office Blue 2007 Magma

Tab widgets

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

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

SubstanceCortex.GlobalScope.registerWidget(
     "org.pushingpixels.substance.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 SubstanceExtrasCortex.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.