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

Odd behavior with JComboBox Popup Menu

    XMLWordPrintable

Details

    • beta
    • x86, sparc
    • solaris_2.6, windows_nt
    • Verified

    Description

      Build : Kestrel 'H' (& in Cricket 'V')
      OS : Sol7 & 2.6 (correct behavior on Win32 box goes away)
      app : demo/jfc/SwingSet.jar

      Strange but understandable as to how it could happen. This is related to bug:4096305/4095963, which are closed for being fixed but still existing in Cricket/Kestrel.

      The symptoms are the same however like to submit more detail. If the JComboBox list is drawing outside of the parent SwingSet frame it gets left behind if the parent frame is move and the list becomes kinda like modeless. However if the list is drawn within the parent frame it moves along with the parent wnd as expected. It seems the child wnd created when list being drawn that falls outside of the parent wnd is not aware of what the parent window is doing.

      Here are the strange results but understandable as the JComboBox list is created as a separate wnd (ie. the box falls outside of the parent wnd):
       - it gets left behind when parent wnd is moved.
       - gets drawn in front of another window if activated/moved onto the top
         of the parent wnd (ie. SwingSet.jar app).

      Of course a pure esthetic issue...but rather unsettling to see. Kinda like an actor on screen leaves behind his arm when he moves..;-)

      On Win32, the behavior is correct in that the listbox goes away when the parent wnd gets focus and moved.

      Rather inconsistent behaviors among the platforms.

      Attachments

        Issue Links

          Activity

            People

              mdavidsosunw Mark Davidson (Inactive)
              rckim Robert Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: