com.bc.ceres.swing.TableLayout.setCellRowspan()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(77)

本文整理了Java中com.bc.ceres.swing.TableLayout.setCellRowspan()方法的一些代码示例,展示了TableLayout.setCellRowspan()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setCellRowspan()方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setCellRowspan

TableLayout.setCellRowspan介绍

暂无

代码示例

代码示例来源: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.setRowWeightY(1, 1.0);      // second row grow in Y
tableLayout.setCellColspan(1, 0, 2);    // CRS list; spans 2 cols
tableLayout.setCellRowspan(1, 2, 2);    // info area; spans 2 rows
tableLayout.setCellColspan(2, 0, 2);    // defineCrsBtn button; spans to cols

代码示例来源: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

tableLayout.setRowWeightY(1, 1.0);      // second row grow in Y
tableLayout.setCellColspan(1, 0, 2);    // CRS list; spans 2 cols
tableLayout.setCellRowspan(1, 2, 2);    // info area; spans 2 rows
tableLayout.setCellColspan(2, 0, 2);    // defineCrsBtn button; spans to cols

代码示例来源:origin: bcdev/beam

layout.setRowWeightY(1, 2.0);
layout.setCellFill(0, 0, TableLayout.Fill.HORIZONTAL);
layout.setCellRowspan(0, 3, 2);
layout.setCellColspan(1, 0, 3);

代码示例来源:origin: bcdev/beam

tableLayout.setColumnWeightX(1, 0.0);
tableLayout.setColumnWeightY(1, 0.0);
tableLayout.setCellRowspan(0, 0, 2);
setLayout(tableLayout);
sourceList = new JList(model);

相关文章