[4967] in java-interest
Re: Window resize event...
daemon@ATHENA.MIT.EDU (Kevin Conner)
Wed Jan 24 16:34:45 1996
Date: Wed, 24 Jan 1996 19:53:18 +0000
From: Kevin Conner <knrc@impltd.com>
To: Paul Benati <benatip@pcd.kodak.com>
Cc: java-interest@java.sun.com
Paul Benati wrote:
>
> Has anyone out there know how to capture a window resize event? I
> wasn't able to find a variable in the Event object which indicated
> a window resize event. Any thoughts?
>
I managed to get something similar in one of my noddy applications,
I queried the clip rectangle for the Graphics object in the Frame
paint method.
I know that it is possible to get a smaller clip rectangle
through refreshes but I never saw those, only the resize.
I believe this behaviour may have been due to the layout of the
components in the Frame, the components were totally obscuring it.
Under this circumstance it looks like paint will only get called
when the Frame is invalid, i.e. when it has changed shape.
This is only a theory (and I have only tried it once) so your
mileage may vary.
Perhaps someone who know for sure can comment?
Kev
P.S. Don't forget the Frame Insets, they're included in the
width and height.
-----------------------------------------------------------------------
Kevin Conner knrc@impltd.com Integrated Micro Products
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com