Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Abstract Window Toolkit (AWT)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 12, 2010 2:22 PM by
How to take Peer window ID in Mac OS?
Aug 12, 2010 2:22 PM
I have to take native peer window Id in Mac OS using Java.
For Linux, I know we can do it as below.
Class cl = Class.forName("sun.awt.X11ComponentPeer");
java.lang.reflect.Method m = cl.getMethod("getContentWindow", null);
Object obj = m.invoke(comp.getPeer());
long windowId = Long.parseLong(obj.toString());
Since there is awt package on Mac Java, I don't know how to take window ID.
If anybody has experience on this please help me.
This content has been marked as final.
Show 0 replies