2 Replies Latest reply: Feb 11, 2013 1:16 PM by 970017 RSS

    Transparent JFrame/JWindow on Mac OSX with Java 7

    970017
      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 is 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));

      But with no success..

      Please advise!

      Thanks,
      Eilon