Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing grids in GridLayout

 
Marco Galea
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was wondering if it is possible to specify the exact grid height (or else something as setSize()) when using a GridLayout ??
I manage to put components in a GridLayout so as to keep my preferred sizes by first putting them in a JPanel and then in a gridLayout panel, but still the problem is that between a component from a grid to the other, the height is not my liking...... so i was wondering if i could actually change the size of a grid.

I know i could use gridbaglayout but want to see if possible with this layout.

Thanks
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The API Documentation wrote:The GridLayout class is a layout manager that lays out a container's components in a rectangular grid. The container is divided into equal-sized rectangles, and one component is placed in each rectangle.
 
Marco Galea
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:
The API Documentation wrote:The GridLayout class is a layout manager that lays out a container's components in a rectangular grid. The container is divided into equal-sized rectangles, and one component is placed in each rectangle.


Cheers...so i definately understood it correctly.......

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic