-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 6
-
Component/s: client-libs
-
b53
-
generic
-
generic
I recently was writing a test case where I wanted a JLabel's background to change color, indicating that a certain condition had been met. This didn't seem to work until I found out that I also had to setOpaque(true). This is not immediately obvious from the setBackground() docs. I think some mention should be made of this in the JavaDoc for JComponent.setBackground().