本文整理了Java中com.bc.ceres.swing.TableLayout.setCellFill()
方法的一些代码示例,展示了TableLayout.setCellFill()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setCellFill()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setCellFill
暂无
代码示例来源:origin: bcdev/beam
private TableLayout createLayout() {
final TableLayout layout = new TableLayout(4);
layout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
layout.setTablePadding(new Insets(4, 4, 4, 4));
layout.setColumnFill(0, TableLayout.Fill.BOTH);
layout.setColumnFill(1, TableLayout.Fill.VERTICAL);
layout.setColumnFill(2, TableLayout.Fill.BOTH);
layout.setColumnFill(3, TableLayout.Fill.BOTH);
layout.setRowFill(0, TableLayout.Fill.NONE);
layout.setRowAnchor(0, TableLayout.Anchor.SOUTHWEST);
layout.setRowWeightY(1, 100.0);
layout.setColumnWeightX(0, 100.0);
layout.setColumnWeightX(2, 100.0);
layout.setColumnWeightX(3, 100.0);
layout.setCellFill(0, 0, TableLayout.Fill.NONE);
layout.setCellFill(0, 1, TableLayout.Fill.NONE);
layout.setCellFill(0, 2, TableLayout.Fill.NONE);
layout.setCellFill(0, 3, TableLayout.Fill.NONE);
return layout;
}
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setCellAnchor(0, 1, TableLayout.Anchor.NORTHEAST); // edit expression button
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
tableLayout.setCellColspan(3, 0, 2); // radio button group
tableLayout.setCellFill(3, 0, TableLayout.Fill.BOTH);
final JPanel panel = new JPanel(tableLayout);
代码示例来源:origin: senbox-org/snap-desktop
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setCellColspan(2, 0, 2);
layout.setCellFill(2, 0, TableLayout.Fill.VERTICAL);
layout.setCellAnchor(2, 0, TableLayout.Anchor.CENTER);
代码示例来源:origin: bcdev/beam
tableLayout.setCellAnchor(0, 1, TableLayout.Anchor.NORTHEAST); // edit expression button
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
tableLayout.setCellColspan(3, 0, 2); // radio button group
tableLayout.setCellFill(3, 0, TableLayout.Fill.BOTH);
final JPanel panel = new JPanel(tableLayout);
代码示例来源:origin: bcdev/beam
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setCellColspan(2, 0, 2);
layout.setCellFill(2, 0, TableLayout.Fill.VERTICAL);
layout.setCellAnchor(2, 0, TableLayout.Anchor.CENTER);
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setTableWeightY(0.0);
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.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
tableLayout.setCellPadding(7, 1, new Insets(0, 0, 0, 0));
代码示例来源:origin: bcdev/beam
tableLayout.setTableWeightY(0.0);
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.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
tableLayout.setCellPadding(7, 1, new Insets(0, 0, 0, 0));
代码示例来源:origin: bcdev/beam
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellWeightY(0, 1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(3, 1, 2);
panel = new JPanel(tableLayout);
代码示例来源:origin: bcdev/beam
private void createUI(JFreeChart chart, String helpID) {
final TableLayout tableLayout = new TableLayout(2);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightY(1.0);
tableLayout.setColumnWeightX(0, 1.0);
tableLayout.setColumnWeightX(1, 0.0);
tableLayout.setRowWeightY(0, 1.0);
tableLayout.setRowWeightY(1, 0.0);
tableLayout.setCellRowspan(0, 1, 2);
tableLayout.setCellFill(1, 0, TableLayout.Fill.HORIZONTAL);
tableLayout.setCellPadding(1, 0, new Insets(5, 5, 5, 5));
mainPanel = new JPanel(tableLayout);
mainPanel.setPreferredSize(new Dimension(320, 200));
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createBevelBorder(BevelBorder.LOWERED),
BorderFactory.createEmptyBorder(2, 2, 2, 2)));
mainPanel.add(chartPanel);
mainPanel.add(createButtonPanel(helpID));
mainPanel.add(validatorUI.createUI());
}
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setColumnWeightX(1, 1.0);
tableLayout.setCellWeightY(0, 1, 1.0);
tableLayout.setCellFill(0, 1, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(3, 1, 2);
panel = new JPanel(tableLayout);
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setCellColspan(2, 0, 2);
tableLayout.setCellAnchor(2, 0, TableLayout.Anchor.EAST);
tableLayout.setCellFill(2, 0, TableLayout.Fill.NONE);
代码示例来源:origin: bcdev/beam
tableLayout.setCellColspan(2, 0, 2);
tableLayout.setCellAnchor(2, 0, TableLayout.Anchor.EAST);
tableLayout.setCellFill(2, 0, TableLayout.Fill.NONE);
代码示例来源:origin: bcdev/beam
@Override
protected void initPageUI() {
visualizer = createOffsetVisualizer();
visualizer.setPreferredSize(new Dimension(60, 60));
visualizer.setOpaque(true);
visualizer.setBorder(BorderFactory.createLoweredBevelBorder());
final TableLayout tableLayout = new TableLayout(3);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
final JPanel pageUI = new JPanel(tableLayout);
pageUI.add(paramOffsetX.getEditor().getLabelComponent());
tableLayout.setCellWeightX(0, 1, 1.0);
pageUI.add(paramOffsetX.getEditor().getEditorComponent());
tableLayout.setCellRowspan(0, 2, 2);
tableLayout.setCellWeightX(0, 2, 1.0);
tableLayout.setCellAnchor(0, 2, TableLayout.Anchor.CENTER);
tableLayout.setCellFill(0, 2, TableLayout.Fill.NONE);
pageUI.add(visualizer);
pageUI.add(paramOffsetY.getEditor().getLabelComponent());
tableLayout.setCellWeightX(1, 1, 1.0);
pageUI.add(paramOffsetY.getEditor().getEditorComponent());
tableLayout.setRowPadding(2, new Insets(10, 0, 4, 4));
pageUI.add(paramShowDecimals.getEditor().getEditorComponent(), cell(2, 0, 1, 3));
tableLayout.setRowPadding(3, new Insets(10, 0, 4, 4));
pageUI.add(paramGeolocationAsDecimal.getEditor().getEditorComponent(), cell(3, 0, 1, 3));
setPageUI(createPageUIContentPane(pageUI));
}
代码示例来源:origin: bcdev/beam
layout.setColumnWeightX(3, 0.0);
layout.setRowWeightY(1, 2.0);
layout.setCellFill(0, 0, TableLayout.Fill.HORIZONTAL);
layout.setCellRowspan(0, 3, 2);
layout.setCellColspan(1, 0, 3);
代码示例来源:origin: senbox-org/snap-desktop
add(p1);
add(p3);
layout.setCellFill(2, 0, TableLayout.Fill.NONE);
layout.setCellAnchor(2, 0, TableLayout.Anchor.NORTHEAST);
add(referencedRastersAreCompatibleLabel);
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setRowFill(1, TableLayout.Fill.BOTH);
tableLayout.setCellFill(0, 0, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2);
代码示例来源:origin: bcdev/beam
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setRowFill(1, TableLayout.Fill.BOTH);
tableLayout.setCellFill(0, 0, TableLayout.Fill.BOTH);
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2);
内容来源于网络,如有侵权,请联系作者删除!