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

REGRESSION: double click jframe titlebar generating mouse events in panel

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      x86
    • OS:
      windows_2000

      Description



      Name: jk109818 Date: 04/08/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      don't think anything is relevant...

      A DESCRIPTION OF THE PROBLEM :
      I have a JFrame. Inside this JFrame I have added a
      JPanel. On the JPanel I have put a MouseListener. When I
      double click the JFrame's title bar to maximize the window,
      a mousepressed event and 2 mousereleased events are
      generated ON THE JPANEL. If I maximize the JFrame using
      the maximize button, this doesn't happen. It also doesn't
      happen when double clicking the title bar to take the
      JFrame back to its "pre-maximized" size.

      Here are some other bugs (sure you probably already know
      about them, if not I have others, let me know):

      Popup menus with many items scroll off the screen, it can't
      be that hard to make the menu scrollable up and down
      (something like the favorites menu does in internet
      explorer).. ?

        Tooltips should not appear over (obscuring) a button's text.

        Tooltips should not go offscreen.

        Tooltips should be multiline enabled... ?

      (This maybe something I'm doing wrong). JButtons with
      images will not be repainted when offscreen for a long
      time. When the window is reshown, the buttons are all gray.

      Sorry for the whining, I really do like Java and think you
      guys are doing a great job

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.Make a JFrame
      2. put a JPanel in it
      3. put a mouse listener on the jpanel
      4. put a system.out in the mousePressed/released methods
      5. double click the jframe title bar to maximize it

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      i expect no mouse events to be generated

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      there are no error messages

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      can supply if requested

      my class basically just extends jframe, and has an inner class that extends
      jpanel.
      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      I don't know... I was thinking about removing the
      mouselistener in a component listener on the frame, but im
      not sure that would even work

      Release Regression From : 1.3.1_03
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 144973)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              jkimsunw Jeffrey Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: