How can I get the text color of a button using the Substance LaF?

Posted by DR on Stack Overflow See other posts from Stack Overflow or by DR
Published on 2010-05-20T06:48:14Z Indexed on 2010/05/20 6:50 UTC
Read the original article Hit count: 209

Filed under:
|
|

In my Java application I have to custom-paint a control and for that I need to use the same font colors as JButton. (Enabled an disabled) I don't want to to hard-code them, because the user can change the Substance skin at runtime.

I'm aware of the ColorSchemes but I'm not sure how to proceed once I have the color scheme of the current skin. Also the Substance documentation says something about creating your own color scheme, but I just can't figure out the way to retrieve a certain color.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing