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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.7, 1.2.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: