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

592677:TEXTFIELD TAB SELECTION CONFUSING; REMOVE ES_NOHIDESEL STYLE IN

XMLWordPrintable

    • tiger
    • x86
    • windows_95, windows_nt



      Name: gvC48267 Date: 12/01/97


      In Win32, the peer for java.awt.TextField gets created with the ES_NOHIDESEL
      style bit set. This is NOT the usual style for most other Windows programs
      users are familiar with, and this causes the tabbing and selection to be
      different and confusing (IMHO). Suggest removing the ES_NOHIDESEL style from
      AwtTextField::Create() in awt_TextField.cpp.
      -
      Specifically, in most Windows apps, the text in a text field gets selected
      when tabbed to, and gets unselected when tabbed away. Any state of selection
      performed by the user is discarded when tabbed away. But in Java, the state
      of selection persists visually even when the user tabs away. This can lead to
      multiple apparent selections being on screen at the same time, which can be
      confusing for a Windows user.
      -
      One possible workaround would be to subclass TextField and add the desired
      Windows-like behavior -- but of course that's not cross-platform! Since an
      original intent of peered components is to get the native platform's look-
      and-feel, this whole selection policy needs to remain the peer's job.
      (In this case, the default n|c behavior *is* different from Windows.)
      -
      [Verified in 1.1.4.8o & 1.1.5J; probably the same in every JDK since 1.0.]
      (Review ID: 21022)
      ======================================================================

            kdmsunw Kdm Kdm (Inactive)
            gvanassesunw Gunter Vanasse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: