Frame resize allowed above a certain Width & Height limit. But denied below the Width & Height.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sakibul_Khan
Posted On:   Tuesday, February 11, 2003 09:58 AM

Hi,



I have a Frame & I want the user to resize it, with a restriction. Let the

minimum Width & Height be 50 & 50 respectively.



I want the user to resize above 50x50, but NOT below 50x50.


Thanks in advance.


---------------------SAKIB

Re: Frame resize allowed above a certain Width & Height limit. But denied below the Width & Height.

Posted By:   Bahman_Barzideh  
Posted On:   Tuesday, February 11, 2003 10:38 AM

try this:

child.setMinimumSize (new Dimension (50, 50));

Where child is the top level child (I assume a
JPanel or at least some other JComponent).
About | Sitemap | Contact