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

JTextField not lose the focus temporarily while invoking a JPopupMenu.

    XMLWordPrintable

    Details

      Description

      Bug Info:
      =========
      JTextField not lose the focus temporarily while invoking a JPopupMenu.And also two components have the focus at a time.

      JDK Info:
      =========
      java version "1.6.0_01-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_01-ea-b03)
      Java HotSpot(TM) Client VM (build 1.6.0_01-ea-b03, mixed mode, sharing)

      Steps to reproduce
      ===================
      1. Download the attached java file.
      2. Execute the file with latest JDK.
      3. Place the focus on textfield and enter some characters.
      4. Right click on internal frame and then poupmenu should show.

      Expected Behavior:
      ==================
      Popupmenu should gain the focus and cursor should not appear in the textfield until dispose the popup menu by pressing ESC.

      Actual Behavior:
      ================
      Popupmenu gain the focus and textfield also have the focus.

      Its working fine with 1.5.0 fcs release.

        Attachments

          Activity

            People

            Assignee:
            ant Anton Tarasov
            Reporter:
            vthotasunw Vinay Thota (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: