http://java.net/jira/browse/MACOSX_PORT-608 submitted 2011/10/26 by Yuri Nesterenko
I'm attaching an example with a Button. For this Button, issued setBackround(Color.GREEN) but it was not honored, background was regular off-white. Foreground is honored though.
There's also a Choice, it is even more interesting. Suppose you set background to BLUE and foreground also to BLUE. With Choice you have a compact view with only selected item visible and an open view with a list of items. Now, in compact view you have background as in that Button above, white, and foreground blue. In open view, background is blue and foreground is white.
What it should be? Obviously everywhere else it is just as you set it.
Note that getBackground/getForeground reports my values, not actual.
Note also that in Apple JDK 6 all these colors are totally consistently ignored. I'm not sure we should call it regression!
I'm attaching an example with a Button. For this Button, issued setBackround(Color.GREEN) but it was not honored, background was regular off-white. Foreground is honored though.
There's also a Choice, it is even more interesting. Suppose you set background to BLUE and foreground also to BLUE. With Choice you have a compact view with only selected item visible and an open view with a list of items. Now, in compact view you have background as in that Button above, white, and foreground blue. In open view, background is blue and foreground is white.
What it should be? Obviously everywhere else it is just as you set it.
Note that getBackground/getForeground reports my values, not actual.
Note also that in Apple JDK 6 all these colors are totally consistently ignored. I'm not sure we should call it regression!
- duplicates
-
JDK-7124538 [macosx] Painting: using setForeground/setBackground causes constant redraws even if the app is idle
- Closed
-
JDK-7132092 [macosx] Policy Tool Background is different
- Closed