Hi, Dmitry,

Thanks for the tip. 

However, I guess I did not make myself clear. The 
WindowsListener does not allow me to capature 
the "WindowResizing" event right at the moment when
the event is generated.

Take a text editor for example. If I want the editor
to automatically break long strings into lines at real
time, I want the display to be refreshed at the same time
when the user is resizing the window. That way, the user 
can drag the window border and experiment with different 
line widths before releasing the mouse. This might not
be a strong use case, but hope you can imagine the
behavior I am trying to implement.

Any comment will be appreciated,

Mingjian Song


> -----Original Message-----
> From: Dmitry Beransky [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 9:53 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: how to capture window resizing?
> 
> At 02:23 PM 2/27/2002, Song, Mingjian wrote:
> >Is it possible to capture the event that a window
> >is resizing?
> 
> You need to work with a WindowListener 
> <http://java.sun.com/j2se/1.3/docs/api/java/awt/Window.html#addWindowListe
> ner(java.awt.event.WindowListener)>
> 
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to