Home arrow static arrow Java Programming [Archive] - how to det minimus size for dialog
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - how to det minimus size for dialog
This topic has 1 reply on 1 page.

Posts:27
Registered: 5/24/04
how to det minimus size for dialog  
Jun 25, 2004 12:23 AM



 
I need dialog which can be resizable, but it have to have also minimum size. So, user cannot make it less then minimum size. How to make it ?
Thanks..
 

Posts:111
Registered: 12/21/97
Re: how to det minimus size for dialog  
Jun 25, 2004 1:53 AM (reply 1 of 1)



 
The dialog should implement the [url=http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ComponentListener.html]java.awt.event.ComponentListener[/url] and registers itself to be the listener. Implement the componentResized(ComponentEvent evt) to make it check the size of the dialog and if it is smaller than the specified minimum size, resize it.
 
This topic has 1 reply on 1 page.