I'd like to create the effect that occurs when you click on the "Maximize" Button on Windows OS. (ie. the middle button in the top right corner)
I can use Toolkit.getDefaultToolkit().getScreenSize();
and then resize the Window, but it's not the same.
I've tried generating the event with the processEvent and dispatchEvent methods, but I can only get it to work for a WINDOW_CLOSING event.
I noticed that when I click on the Maximize button, it generates a WINDOW_DEACTIVATED event in
Java. But if I try to send this event, it does nothing?
How else can I do this?
Thanks,
Drew