Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridLayout

 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one know how I can set the minimum size of a component using Grid Layout?
EG - I am placing Panels on a scrollable panel. I have 5 columns, but I want a random number of rows, but I dont want the rows squashed up.
Can I set the mimimum size of the components so that I have to scroll down to see them
Thanks,
D
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
Grid Layout ignores component sizes anyway ... All components are given the same size area which is the layout divided evenly in both directions.
You might look into GridBagLayout ...
Regards,
Manfred.
 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manfred,
Thanks for the reply.... i will check out GridBagLayout.
D
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!