Hi!
I want to show a child window on top of its parent. The parent gets hidden before. When i show the parent again the child is still hidden.
I try to use JNATIVE.
Thats the code i tried so far. Of course it's not working.
I found [http://forums.sun.com/thread.jspa?threadID=5296765] , but it was not enought help for me. It would be great if someone could explain what to do further. I already spend a lot time by searching the internet...
Callback c = new Callback() {
private int address = 0;
@Override
public int callback(long[] arg0)
{
// ??? what code here?
System.out.println("test");
return 0;
}
@Override
public int getCallbackAddress() throws NativeException
{
if (address == 0)
{
address = JNative.createCallback(0, this);
}
return address;
}
};
boolean succeed = User32.EnumChildWindows(cc.getHandle(), c, 0);
JNative.releaseCallback(c); //???
Would be very pleased about help.
Best Regards.
Edited by: enib.s on Dec 14, 2009 8:32 PM