官网: http://www.clearthought.info/sun/products/jfc/tsc/articles/tablelayout/TableLayoutConstraints.html
开源JAR
下载及例子参考官网右侧导航栏
属性参数:
this.add(new JButton("0,0"),"0,0")中constraints为“0,0”两个参数,表示只占0行0列
this.add(new JButton("3,0,3,1"),"3,0,3,1")中constraints为“3,0,3,1”四个参数,表示此component在container中的占用cell为从“3,0”跨度到“3,1”。跨度的方向为左上角到右下角围成的矩形
SWING - TableLayout
猜你喜欢
转载自tianqiushi.iteye.com/blog/2119453
今日推荐
周排行