This discussion is archived
2 Replies Latest reply: Feb 11, 2013 11:16 AM by 970017 RSS

Transparent JFrame/JWindow on Mac OSX with Java 7

970017 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points