Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting size  RSS feed

 
meeraa pillaii
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends

below is my program..

In my program all the controls's size are same to window size.I want to set the size by giving some size


Please help..Urgent issue



 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by meeraa pillaii:
In my program all the controls's size are same to window size.I want to set the size by giving some size

Then you will need a different LayoutManager, like GridBagLayout or perhaps GroupLayout.

GridLayout divides the available space of the entire container into equal parts, and each cell gets that much space. So if you have only one column, then yes, all components will have the full width of the frame.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!