How do you use gridbaglayout in java?
How do you use grid bag layout? What does it mean with all of the pady开发者_如何学JAVA and all of that. there are no tutorials properly online.
Did you really search? This is a good one (and btw from official sources)
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.
Totally Gridbag
http://madbean.com/anim/totallygridbag/
You could also set the layout to null
and manually place it using the setBounds(x, y, length, height)
method
精彩评论