Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

limit resize bounds

 
Priya Kannan
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priya,
If you want to stop user resizing:
JInteralFrame jIF = new JInternalFrame();
jIF.setResizable( false );
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic