2

I'm building a Swing app in which I'd like to put a "fat header" as in this image:

enter image description here

Is there a nice way to get the native system colour for that background area? So on Ubuntu with a default theme I'd like to get the colour in the image, but for other themes, and on Windows, I'd also like to have something sensible. I'm using the native Look & Feel.

Bart van Heukelom
  • 41,958
  • 59
  • 182
  • 293

1 Answers1

1

FatHeader is probably JMenuBar, for example or JPanel with GradientPaint (very simple is take this Gradient[] from JButton's JComponents)

Community
  • 1
  • 1
mKorbel
  • 109,107
  • 18
  • 130
  • 305