Duplicate :
|
|
Duplicate :
|
|
Relates :
|
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.
|