• Post Reply Bookmark Topic Watch Topic
  • New Topic

Frame resizing  RSS feed

 
lakshmi nair
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a frame which contains some text components, which takes in values and validates (a database connection). After validations a different set of components has to be displayed with the window size maximized. I could do everything except the maximizing part. The frame remains the same size with the new contents in it. How can i do this? I tried using functions - setSize, setBounds, doLayout, repaint, update, validate etc. combinations of these. what is going wrong in this?
I tried out this other method, opening a new window, with the required size. But how do i close the first window without exiting the application?
thanks,
lakshmi
[This message has been edited by lakshmi nair (edited May 31, 2001).]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the hide() method in the Window class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!