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

[macosx] Transparent JFrame does not pass mouse clicks through on Mac OSX

    Details

      Description

      FULL PRODUCT VERSION :
      ava version " 1.7.0_09 "
      Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OSX Mountain Lion 10.8.2

      A DESCRIPTION OF THE PROBLEM :
      We have a screen sharing applet that opens up a Swing JFrame and uses the Robot class to capture the screen behind the empty frame.

      The user should be able to click through the frame and interact with whatever lies behind the applet. This works fine on Windows and used to work with Apple's Java version, but with Java 7 for Mac it does not work. Mouse clicks does not go through the JFrame.

      The JFrame uses:

      setAlwaysOnTop(true);
      setUndecorated(true);

      Tried using:

      AWTUtilities.setWindowOpaque(false);

      Or

      setBackground(new Color(0, 0, 0, 0));

      With Apple's version calling:

      getRootPane().putClientProperty( " apple.awt.draggableWindowBackground " , Boolean.FALSE);

      did the trick, but this is no longer working.

      Please advise.

      Thanks, Eilon


      REGRESSION. Last worked in version 6u31

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create an alwaysOnTop/Undecorated JFrame and see that when its visible, user can not interact with windows behind the JFrame.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JFrame should allow mouse clicks through.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pbansal Pankaj Bansal
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: