Accessing LAF Colors for my Custom Component

Hello all,Hopefully a simple question:I am creating a custom Component and would like to access the current LAF colors for my drawing routines (the foreground color, the colors used for Borders, etc.). How shall I do this? I am sub-classing JComponent. Thank you.
[291 byte] By [fwanka] at [2007-11-27 6:30:36]
# 1

Color c = UIManager.getColor("Label.background");

There's very poor documentation regarding that. And a L&F isn't specifically required to define those colors.

Best bet is to write a small app using the L&F set to whatever you're going to use, then dump the contents of UIManager.getDefaults() to System.out and see what colors and fonts and borders exist.

Generally, you can usually find the base component type names, sans 'J': Label for JLabel, Button for JButton, followed by . and fairly common types like background, foreground, border, font

bsampieria at 2007-7-12 17:55:10 > top of Java-index,Desktop,Core GUI APIs...
# 2
So there isn't a list out there with all of these String keys for color values? That's interesting.Thanks for the help, that'll work just fine.-F
fwanka at 2007-7-12 17:55:10 > top of Java-index,Desktop,Core GUI APIs...