Support for SwingX components – part III
June 20th, 2007 | 2 Comments »This is the third part in the ongoing series of providing support for SwingX components in Substance look and feel.
- The first part showed the support for JXTaskPaneContainer and JXTaskPane.
- The second part showed the support for JXStatusBar.
This part will show the support for JXTitledPanel. Much like the case with task panes and status bars, the UI delegate for titled panel respects the header painter of the current skin (sometimes using its secondary painter defined on the skin level), which results in a consistent and unique appearance for the “decoration” areas of the UI. Here is a screenshot of a frame with a few JXTitledPanels under Business skin:

Here is the same frame under Business Black Steel skin:

Here is the same frame under Nebula Brick Wall skin:

Here is the same frame under Office Blue 2007 skin:

Here is the same frame under dark Raven Graphite skin:

Here is the same frame under dark Magma skin:

Here is the same frame under saturated Finding Nemo skin:

Note that the painting of the title is consistent with the main title pane of the frame (including the texture where necessary), the global watermark and colors. In addition, the panel itself has a dropshadow border installed on it.
Related posts:
- Support for SwingX components – part II This is the second part in the ongoing series of providing support for SwingX components...
- Support for SwingX components – part V This is the fourth part in the ongoing series of providing support for SwingX components...
- Support for SwingX components – part I The recent drops of Substance plugin for SwingX components started providing extensive and consistent support...
- Support for SwingX components – part VII This is the seventh part in the ongoing series of providing support for SwingX components...
Hello Kirill,
I am using substance look and feel from past 2 years and still using it.
>I have applied substance look and feel for all SwingX components and it worked well.
>Now What actually is meant by support for swingx components.
>Anything new which I missed using Substance.
> I like the substance rollover effects even though there are some problems related to painting the window.
>Please make me clear about the statement :Support for swingx components
cheers,
Dhilshuk Reddy.
Dhilshuk
The first support for SwingX components has been added in version 3.3 of Substance (last stable release). Before that, if you used SwingX components in an application running under Substance, they would use the LAF that best matches the OS (Windows / …). Version 3.3 added support for task pane container, task pane, month view and status bar. In version 4.0 i’m refining these four and adding yet more UI delegates.
So, a look and feel has to create custom UI delegates for the SwingX components in order for them to look consistent with the rest of the application. Just try running your app under, say, Squareness, and see how SwingX components look like.