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

MouseEvent should be blocked on heavy weight component added on the glasspane

XMLWordPrintable

    • generic
    • generic

      http://weblogs.java.net/blog/alexfromsun/archive/2007/06/_enablingdisabl_1.html tells how glasspane can be used to block the events on components. But when i mix the heavy weight & light weight components , only light weight components are blocked from mouse events, where as heavy weight components receieves the mouseevents. This RFE is regarding blocking the mouseevent to the heavy weight components added to the glasspane.

      One of the scenario where this RFE can be used is when disabling the container (swing) all its components into should be disabled, it works fine for AWT , but it wn't for swing components, After "Mixing of heavy weight & light weight components " feature .
      When heavy weight components are added to the swing container , AWT components are not diabled when swing container is disabled. To solve this glass pane can be used as event blocker.

      Step to Reproduce.
      -------------------
      1) Run the attached testcase.
      2) select the checkbox.
      3) click on menu, swingbutton, you can see a red circle , but when you click on the button, either the circle goes behind the awt button
      & button can be clicked.

            Unassigned Unassigned
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: