What is the proper way to get the current look-and-feel's component background color in Swing?

Posted by John B. on Stack Overflow See other posts from Stack Overflow or by John B.
Published on 2010-04-26T00:04:08Z Indexed on 2010/04/26 0:13 UTC
Read the original article Hit count: 179

Filed under:
|

I am writing a custom Swing component with my own painting. I'd like to query whether or not the current look and feel's components are opaque, and if so, what their background color is so my component can use it too. I'm having a hard time finding that on Google. Anyone know? Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about swing