|
|
@ -11,6 +11,18 @@ import java.awt.*; |
|
|
|
* @version 10.0 |
|
|
|
* @version 10.0 |
|
|
|
* Created by richie on 2019-08-28 |
|
|
|
* Created by richie on 2019-08-28 |
|
|
|
* 表格布局 |
|
|
|
* 表格布局 |
|
|
|
|
|
|
|
* <code> |
|
|
|
|
|
|
|
* double p = TableLayoutKit.PREFERRED; |
|
|
|
|
|
|
|
* double f = TableLayoutKit.FILL; |
|
|
|
|
|
|
|
* double[] rowSize = new double[]{p, p, p, f}; |
|
|
|
|
|
|
|
* double[] columnSize = new double[]{p, f}; |
|
|
|
|
|
|
|
* JComponent[][] comps = new JComponent[][]{ |
|
|
|
|
|
|
|
* {new JLabel(), new JButton()}, |
|
|
|
|
|
|
|
* {new JLabel(), new JButton()}, |
|
|
|
|
|
|
|
* {new JLabel(), new JButton()} |
|
|
|
|
|
|
|
* } |
|
|
|
|
|
|
|
* JPanel = TableLayoutKit.createTableLayoutPane(comps, rowSize, columnSize); |
|
|
|
|
|
|
|
* </code> |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class TableLayoutKit { |
|
|
|
public class TableLayoutKit { |
|
|
|
|
|
|
|
|
|
|
|