Color « Container « Java Swing Q&A





1. backgrounf Color of a Container    coderanch.com

2. Background color not inherited from the immediate container    coderanch.com

Textfields don't inherit the background color either(at least on Windows NT)... The only widgets I can recall off the top of my head that inherit backgrounds are Labels and Panels... I think it's because buttons are made to look like they are "sticking out of" the GUI and their color sets them apart... and texfields are supposed to look like they ...

3. Container Colour    coderanch.com