开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜