TableLayout与MigLayout

最近新接触的两个Layout,另外之前用的GridBagLayoutHelper以及最近听说的Qt for java的QCSS据说也不错,

只是Qt的跨平台需要单独发布,假如使用QT for java,可能需要考了如何跨平台。

TableLayout:

        double size[][] = { { TableLayout.FILL, 28, 28, 28, 9 }, { 10, 27, 8 } }; // cols widths, rows heights
        TableLayout layout = new TableLayout(size);
        getContentPanel().setLayout(layout);
        getContentPanel().add(mMenuBar, "1, 1, 2, 2"); // fromt cell 1,1, to 2,2

  

MigLayout:

http://www.migcalendar.com/miglayout/whitepaper.html

http://www.migcomponents.com/

To be write。。。

原文地址:https://www.cnblogs.com/TLightSky/p/3205072.html