On mac osx, if you run a java applet in the browser, It’s possible to pop the applet out of the browser by pressing cmd+shift. This is actually a workaround given for when you want to drag and drop something inside your applet – the drag and drop in an applet inside the browser is broken on mac osx.
So my question is, there is any way I can check if the applet is out of the browser using Java? Any of you have any idea?
Edit:
This cmd+shift functionality to detach the frame out of the browser is broken on JRE 7 as well as the drag and drop.
Turning my comment into an answer.
You could try to locate the root window containing the applet, either by iterating over parent links yourself or using
SwingUtilities.getRootorSwingUtilities.getWindowAncestor. With a bit of luck, the class name of that window, or some other property of it, will give you an indication you can use.