my dog learned polymorphism*
The moose likes Beginning Java and the fly likes limit resize bounds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "limit resize bounds" Watch "limit resize bounds" New topic
Author

limit resize bounds

Priya Kannan
Ranch Hand

Joined: Jan 19, 2001
Posts: 72
Hi All,
I have a JInternalFrame to which I've added a JPanel.It can be resized. Now I want to limit the resize bounds of the JInternalFrame. I tried using the ComponentListener & the componentResized method. But even after I use this I am not able to stop the resizing completely. The Frame gets dragged and when it is let go, it assumes its default width & height. Now I wanna stop resizing AS SOON AS someone tries to. I guess I've made my doubt clear.
Do help!
Thanks.
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Priya,
If you want to stop user resizing:
JInteralFrame jIF = new JInternalFrame();
jIF.setResizable( false );
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: limit resize bounds
 
Similar Threads
JFrame resize problem
JInternalFrames containing JPanels (resize and move problems)
resizing JInternalFrame when content grows
scaling a font when resizing by dragging
Why Glass Pane becomes visible when resizing JInternalFrame?