aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes gridlayout - set size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "gridlayout - set size" Watch "gridlayout - set size" New topic
Author

gridlayout - set size

Cathy Song
Ranch Hand

Joined: Jul 01, 2003
Posts: 92
Hi all,

I have a panel with girdlayout with images in each cell.
When i mouse over an image, the size increases, and this causes the whole
grid to re-size and act crazy. How can I set an option by which my cells dont resize?

Thanks,
Cathy.
Cathy Song
Ranch Hand

Joined: Jul 01, 2003
Posts: 92
Any clues? I dont want my cells to be resized as components are added.
Cant I fix the size of each cell?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
GridLayout doesn't pay much attention to the size of the components you hand it. It divides the available space up according to the number of rows or columns you specify and adds the components. I was unable to create the behavior you describe. If this app doesn't help maybe you can modify it to show the behavior.
Cathy Song
Ranch Hand

Joined: Jul 01, 2003
Posts: 92
Thanks much!

-Cathy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gridlayout - set size