RE: how to capture window resizing?

2002-02-28 Thread Song, Mingjian

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



RE: how to capture window resizing?

2002-02-28 Thread Dmitry Beransky

No, sorry, it was me (I should learn never to give people advice when tired :).

Hopefully, the link below will give you the answers you're looking for 
(although, you probably not going to like it):

http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#dynamicLayout


At 06:21 AM 2/28/2002, Song, Mingjian wrote:
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.

___
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing