The Java Man
The Java Man

Reputation: 305

How do you use gridbaglayout in java?

How do you use grid bag layout? What does it mean with all of the pady and all of that. there are no tutorials properly online.

Upvotes: 3

Views: 2335

Answers (4)

irreputable
irreputable

Reputation: 45443

Totally Gridbag

http://madbean.com/anim/totallygridbag/

Upvotes: 0

Globmont
Globmont

Reputation: 901

You could also set the layout to null and manually place it using the setBounds(x, y, length, height) method

Upvotes: -2

james_bond
james_bond

Reputation: 6906

Did you really search? This is a good one (and btw from official sources)

Upvotes: 4

Globmont
Globmont

Reputation: 901

I'm not quite sure about gridbaglayout but gridlayout is quite easy. You just say

frame.setLayout(new GridLayout(number of rows, number of columns, spacing, spacing from     top));

like that.

Upvotes: 0

Related Questions