Results 1 to 4 of 4
Thread: GridBagLayout Resizing
- 05-22-2011, 01:04 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 5
- Rep Power
- 0
GridBagLayout Resizing
I've just started learning about GridBagLayout. I'm in the processes of turning a GridLayout gui into a GridBagLayout GUI. Everything works great. My only hiccup is that whenever items get removed or added, the Layout resizes itself. All I want is for the columns and rows to be equal height and width always, regardless of the size of components. I've tried reassigning c.fill and c.weight*. Does not seem to do the trick. Any suggestions?
Thanks
- 05-22-2011, 03:43 AM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
That is what a GridLayout was designed for.All I want is for the columns and rows to be equal height and width always, regardless of the size of components
GridBagLayout was NOT designed for that purpose.
- 05-22-2011, 04:31 AM #3
Member
- Join Date
- Apr 2011
- Posts
- 5
- Rep Power
- 0
Ugh. Not the response I wanted. I feel like I need GridBagLayout because I want some components to occupy several cells.
- 05-22-2011, 07:22 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Similar Threads
-
resizing a rectangle?
By ludis in forum New To JavaReplies: 9Last Post: 12-12-2010, 01:00 PM -
panel resizing
By simo_mon in forum AWT / SwingReplies: 1Last Post: 08-15-2009, 02:09 PM -
panel resizing
By kumar_gemi in forum New To JavaReplies: 3Last Post: 03-13-2009, 02:51 AM -
Image Resizing and DPi
By Rob_ in forum Java AppletsReplies: 4Last Post: 11-27-2008, 02:21 PM -
Image resizing
By alley in forum Java 2DReplies: 2Last Post: 11-13-2007, 10:10 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks