Your question is pretty vague. What are you trying to accomplish.
Assuming you want to be notified by or control things like window
closing, window minimized, ect...My answer is:
You need to read up a little more on events.
java.awt.event.WindowListener to be more specific.
Hope this helps,
Todd
Specifically I want to assign some code, preferably C code, to the
WM_WINDOWPOSCHANGING message. There is no event for this in Java. I need
to use this message in order to "glue" a window to the desktop. If I simply
force the window to the back during the windowActivated event, the frame
flickers to the top and is then sent to the back. The reason I need the
windows message is because it's triggered before the window is actually
moved; as far as I've found out there is no equivalent event in java.
-Jeremy
> Your question is pretty vague. What are you trying to accomplish.
>
[quoted text clipped - 6 lines]
> Hope this helps,
> Todd
Todd Corley - 08 Jan 2004 13:45 GMT
It will not provide you with a pre-move message, but:
java.awt.event.ComponentListener
will inform you of any changes in the frames location, size, or visibility state.
It is not vetoable, but you can use the event to undo changes you do not allow.
> Specifically I want to assign some code, preferably C code, to the
> WM_WINDOWPOSCHANGING message. There is no event for this in Java. I need
[quoted text clipped - 3 lines]
> windows message is because it's triggered before the window is actually
> moved; as far as I've found out there is no equivalent event in java.