Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulate gridlayout with gridbaglayout

Status
Not open for further replies.

rvy2k

Programmer
Jun 29, 2001
39
0
0
US
Hi everyone,

I am trying to create a panel with a gridbaglayout with N number of columns which would all have the same width no matter what the size of the components inside are. Basically, i would like the gridbaglayout to act like gridlayout and therefore no resize. Is this possible?

Thanks.

PS: I am using gridbag to span on multiple columns so that's why i am not using grid.
 
anyone?

basically i was wondering if it was possible for all the columns of a gridbaglayout to have the same size ...
 
I imagine that using the gridwidth method of the GridBagLayout would work, provided you pass it the same value every time you call it, but why don't you just use GridLayout, if you're afraid of a Frame being resized, just call setResizable(false) on the Frame.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top