-
Enhancement
-
Resolution: Fixed
-
P4
-
1.1.6, 1.3.0
-
beta
-
generic, x86
-
generic, windows_nt
Name: vi73552 Date: 04/06/99
it's impossible in metal LAF to change the backgroung color
of a 'Non editable' Textfield. Why ??? it's really annoying !
private void editableChanged(JComponent c, boolean editable) {
Color background = c.getBackground();
if (editable == false) {
if (background instanceof UIResource) {
c.setBackground(UIManager.getColor("control"));
}
} else {
if (background instanceof UIResource) {
c.setBackground(UIManager.getColor("TextField.background"));
}
}
}
Why not add a new property "TextField.inactiveBackground" ?
Thanx in advance for your support .
(Review ID: 56567)
======================================================================
- duplicates
-
JDK-4311611 Noneditable text fields in JLF do not match spec
-
- Closed
-