By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

Doubts in Swing

P: 46
Hi all,
I want to set a panel width and height by using setSize() method without placing the components.... But it didnt show the space allocated for width and height..... So please help me out to acheive this one provided initially don't put the componenets inside the panel.

Anothe Question is that,

If i want to move the component within the panel means how to do that....

Reply me as soon.....
Nov 15 '06 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Hi all,
I want to set a panel width and height by using setSize() method without placing the components.... But it didnt show the space allocated for width and height..... So please help me out to acheive this one provided initially don't put the componenets inside the panel.

Anothe Question is that,

If i want to move the component within the panel means how to do that....

Reply me as soon.....
You should read a bit more into layouts and you will find that the behaviour of sizing methods really depend on the layout manager used and on other components present on the interface.
Nov 15 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.