In Swing, Receiving a mouse event from a non-showing Component

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.7, 1.2.0
    • Component/s: client-libs



      Name: clC74495 Date: 12/08/98


      I have a JMenu with two JRadioButtonMenuItem objects and one
      JCheckBoxMenuItem object, with a JSeparator between them.

      If I select a JRadioButtonMenuItem, without releasing mouse button,
      then move mouse down to JCheckBoxMenuItem, I get a weird message
      generated by the system: "Received a mouse event from a non-showing
      Component" (full text follows). Very repeatable, but must move mouse
      quickly, not slowly.

      Received a mouse event from a non-showing Component javax.swing.JRadioButtonMenu
      Item[,2,23,117x21,alignmentX=null,alignmentY=null,border=javax.swing.plaf.basic.
      BasicBorders$MarginBorder@c86f200c,flags=33,maximumSize=,minimumSize=,preferredS
      ize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.In
      setsUIResource[top=2,left=2,bottom=2,right=2],paintBorder=false,paintFocus=false
      ,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selected
      Icon=javax.swing.plaf.basic.BasicIconFactory$RadioButtonMenuItemIcon@b23b200c,te
      xt=Backward]

      Sample code: see Workaround section.

      (Review ID: 47509)
      ======================================================================

            Assignee:
            Georges Saab
            Reporter:
            Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: