How to set maximum bound for JDialog

Hai..I want to resize the JDialog ...but it should particular size ....In JFrame ,We will define maximum Size usingsetMaximizedBounds(Rectangle bounds)like that i want in JDialog....give SolutionThanks in Advance....
[265 byte] By [amir430a] at [2007-11-27 10:02:31]
# 1

What you are asking doesn't make much sense because, setMaximizedBounds() only defines the bounds for the window in the maximized state, not the maximum size you can manually resize. And JDialogs don't have a maximized state. So what you are asking is not possible.

If you want to restrict manual resizes, then use a component listener and restrict the bounds as it's resized.

bsampieria at 2007-7-13 0:36:48 > top of Java-index,Desktop,Core GUI APIs...