-
Bug
-
Resolution: Fixed
-
P2
-
1.1.1, 1.1.7, 1.1.8, 1.2.0, 1.3.0
-
None
-
kestrel
-
x86, sparc
-
solaris_7, windows_95, windows_98, windows_nt
The Java Blend team is experiencing a problem with
non-editable textfields. When running the following
program under the following conditions:
On Solaris with
jdk 1.2 non-editable textfields are now appearing as white
jdk 1.1.6 non-editable textfields are gray
On NT with
jdk 1.2.2 non-editable textfields are now appearing as white
jdk 1.2 non-editable textfields are gray
During a recent usability test of the product, all of the participants
were confused by textfields that appeared to be editable (white) when
in fact they were not.
Java Blend uses non-editable textfields extensively to indicate to the user
when they are able to modify an attribute or not. Color is
the only indication to the user that will be able to change
that attribute. Without any distinction between these two
states, all sorts of usability problems are being found.
The team would really appreciate your timely response since we are
currently in beta and will be going FCS in November. Thanks!
--------------------------------
import java.awt.*;
public class DisableText
{
private TextField disabled = new TextField(30);
private TextField enabled = new TextField(30);
public static void main (String args[])
{
DisableText myDisableText = new DisableText();
}
public DisableText()
{
Frame window = new Frame("DisabledFieldTest");
window.setLayout(new FlowLayout());
disabled.setText("non-editable");
disabled.setEditable(false);
window.add(disabled);
enabled.setText("editable");
enabled.setEditable(true);
window.add(enabled);
window.pack();
window.setVisible(true);
}
}
non-editable textfields. When running the following
program under the following conditions:
On Solaris with
jdk 1.2 non-editable textfields are now appearing as white
jdk 1.1.6 non-editable textfields are gray
On NT with
jdk 1.2.2 non-editable textfields are now appearing as white
jdk 1.2 non-editable textfields are gray
During a recent usability test of the product, all of the participants
were confused by textfields that appeared to be editable (white) when
in fact they were not.
Java Blend uses non-editable textfields extensively to indicate to the user
when they are able to modify an attribute or not. Color is
the only indication to the user that will be able to change
that attribute. Without any distinction between these two
states, all sorts of usability problems are being found.
The team would really appreciate your timely response since we are
currently in beta and will be going FCS in November. Thanks!
--------------------------------
import java.awt.*;
public class DisableText
{
private TextField disabled = new TextField(30);
private TextField enabled = new TextField(30);
public static void main (String args[])
{
DisableText myDisableText = new DisableText();
}
public DisableText()
{
Frame window = new Frame("DisabledFieldTest");
window.setLayout(new FlowLayout());
disabled.setText("non-editable");
disabled.setEditable(false);
window.add(disabled);
enabled.setText("editable");
enabled.setEditable(true);
window.add(enabled);
window.pack();
window.setVisible(true);
}
}
- duplicates
-
JDK-4054667 TextArea.setBackground does not always work
-
- Closed
-
-
JDK-4182554 setEditable true/false gives different background color in Text Fields / Areas
-
- Closed
-
-
JDK-4234713 setEditable(false) in 1.1.8 does not shade TextComponent as did 1.1.6
-
- Closed
-
- relates to
-
JDK-4357884 TextField.setBackground(Color) fails when TextField.setEditable(false)
-
- Closed
-