Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4258667

Non-editable Text fields appearing white instead of gray

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.1.1, 1.1.7, 1.1.8, 1.2.0, 1.3.0
    • client-libs
    • 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);
      }
      }


            ehawkessunw Eric Hawkes (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: