Reputation: 305
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
Reputation: 901
You could also set the layout to null
and manually place it using the setBounds(x, y, length, height)
method
Upvotes: -2
Reputation: 6906
Did you really search? This is a good one (and btw from official sources)
Upvotes: 4
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