Browse Source

注释

remotes/1611766341912730171/master
richie 5 years ago
parent
commit
92b9f510ca
  1. 12
      src/main/java/com/fanruan/api/design/ui/layout/TableLayoutKit.java

12
src/main/java/com/fanruan/api/design/ui/layout/TableLayoutKit.java

@ -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 {

Loading…
Cancel
Save