John said:
[...] How is it possible to make a gradient background
color to this label ?
I suggest to use a panel that paints a gradient background
and then add a label to it. You can then later add an optional
toolbar, icon, border, etc.
This is easy if you use a single l&f with a fixed set
of colors. Honoring a set of l&fs and multiple color themes
is a little bit harder.
I'm about to open source the Skeleton application that
will ship with a class SimpleInternalFrame that provides
an eclipse-like structuring panel. You can see it here:
http://www.jgoodies.com/freeware/looks/index.html
The three different screenshots demonstrate the problem
mentioned above. I've put some effort in honoring the
desktop colors to not alienate users with a custom gradient.
The Skeleton app and SimpleInternalFrame will be published
at JavaDesktop.org in the JGoodies subproject "demos".
This subproject is not yet visible to the general public.
I plan to release it to the general public later this year.
Hope this helps,
Karsten Lentzsch