-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0, 6
-
sparc
-
solaris_9
Contrary to the spec requirements, TextField and TextArea cannot inherit foreground
and background colors from the parent window. Calling setForeground/setBackground(null)
has no effect (tried JDK 1.4 through 1.6, several window managers). Note that
isForegroundSet/isBackgroundSet() returns false, implying that the colors will be
inherited.
Note that setting colors explicitly to a non-null value works fine, so this doesn't
seem to be related to limitations of particular window managers.
A sample class to play with is attached.
and background colors from the parent window. Calling setForeground/setBackground(null)
has no effect (tried JDK 1.4 through 1.6, several window managers). Note that
isForegroundSet/isBackgroundSet() returns false, implying that the colors will be
inherited.
Note that setting colors explicitly to a non-null value works fine, so this doesn't
seem to be related to limitations of particular window managers.
A sample class to play with is attached.
- duplicates
-
JDK-6246500 Text Components do not inherit foreground color property from it's ancestor, on XToolkit
-
- Closed
-
-
JDK-6371452 Spec issues with foreground/background inheritance and defaults
-
- Closed
-
- relates to
-
JDK-6246498 Button does not seem to inherit the background color property from the parent frame, win32
-
- Closed
-