本文整理了Java中com.bc.ceres.swing.TableLayout.setCellWeightY()
方法的一些代码示例,展示了TableLayout.setCellWeightY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setCellWeightY()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setCellWeightY
暂无
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setRowFill(0, TableLayout.Fill.VERTICAL);
tableLayout.setCellFill(1, 0, TableLayout.Fill.BOTH); // expression text area
tableLayout.setCellWeightY(1, 0, 1.0);
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2); // expression note line 1
代码示例来源:origin: bcdev/beam
tableLayout.setRowFill(0, TableLayout.Fill.VERTICAL);
tableLayout.setCellFill(1, 0, TableLayout.Fill.BOTH); // expression text area
tableLayout.setCellWeightY(1, 0, 1.0);
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2); // expression note line 1
代码示例来源:origin: bcdev/beam
tableLayout.setTableWeightY(0.0);
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellWeightY(0, 1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(3, 1, 2);
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH); // coordinate table
tableLayout.setCellWeightY(0, 1, 7.0);
tableLayout.setCellPadding(6, 0, new Insets(8, 4, 4, 4)); // expression label
tableLayout.setCellPadding(6, 1, new Insets(0, 0, 0, 0)); // expression panel
tableLayout.setCellWeightX(6, 1, 1.0);
tableLayout.setCellWeightY(6, 1, 3.0);
tableLayout.setCellFill(6, 1, TableLayout.Fill.BOTH);
tableLayout.setCellPadding(7, 0, new Insets(8, 4, 4, 4)); // Sub-scene label
代码示例来源:origin: bcdev/beam
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH); // coordinate table
tableLayout.setCellWeightY(0, 1, 7.0);
tableLayout.setCellPadding(6, 0, new Insets(8, 4, 4, 4)); // expression label
tableLayout.setCellPadding(6, 1, new Insets(0, 0, 0, 0)); // expression panel
tableLayout.setCellWeightX(6, 1, 1.0);
tableLayout.setCellWeightY(6, 1, 3.0);
tableLayout.setCellFill(6, 1, TableLayout.Fill.BOTH);
tableLayout.setCellPadding(7, 0, new Insets(8, 4, 4, 4)); // Sub-scene label
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setTableWeightY(0.0);
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellWeightY(0, 1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(3, 1, 2);
代码示例来源:origin: bcdev/beam
layout.setColumnFill(3, TableLayout.Fill.BOTH);
layout.setRowWeightY(0, 1.0);
layout.setCellWeightY(0, 3, 1.0);
layout.setColumnWeightX(0, 1.0);
layout.setColumnWeightX(1, 2.0);
代码示例来源:origin: senbox-org/s2tbx
public void populate(List<JComponent[]> componentsList) {
TableLayout layout = (TableLayout)getLayout();
int rowIndex = 0;
for (JComponent[] components : componentsList) {
if (components.length == 2) {
layout.setCellWeightX(rowIndex, 0, 0.0);
add(components[1], cell(rowIndex, 0));
layout.setCellWeightX(rowIndex, 1, 1.0);
if(components[0] instanceof JScrollPane) {
layout.setRowWeightY(rowIndex, 1.0);
layout.setRowFill(rowIndex, TableLayout.Fill.BOTH);
}
add(components[0], cell(rowIndex, 1));
} else {
layout.setCellColspan(rowIndex, 0, 2);
layout.setCellWeightX(rowIndex, 0, 1.0);
add(components[0], cell(rowIndex, 0));
}
rowIndex++;
}
layout.setCellColspan(rowIndex, 0, 2);
layout.setCellWeightX(rowIndex, 0, 1.0);
layout.setCellWeightY(rowIndex, 0, 0.5);
}
代码示例来源:origin: senbox-org/s2tbx
layout.setCellWeightY(rowIndex, 0, 0.5);
内容来源于网络,如有侵权,请联系作者删除!