File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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!
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 );
I agree. Here's the link:
subject: limit resize bounds
It's not a secret anymore!