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

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

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

TableLayout.setColumnFill介绍

暂无

代码示例

代码示例来源:origin: senbox-org/snap-desktop

/**
 * Creates a <code>JPanel</code> containing a label with the given text and a horizontal line.
 *
 * @param title The label text.
 *
 * @return A <code>JPanel</code> with the title label.
 */
public static JPanel createTitleLabel(String title) {
  TableLayout layout = new TableLayout(3);
  layout.setColumnWeightX(0, 0.0);
  layout.setColumnWeightX(1, 0.0);
  layout.setColumnWeightX(2, 1.0);
  layout.setColumnFill(0, TableLayout.Fill.NONE);
  layout.setColumnFill(1, TableLayout.Fill.NONE);
  layout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
  JPanel comp = new JPanel(layout);
  JLabel label = new JLabel(title);
  comp.add(label);
  comp.add(new JLabel("   "));
  comp.add(new JSeparator());
  return comp;
}

代码示例来源:origin: senbox-org/snap-desktop

tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));

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

gridLayout.setTablePadding(4, 3);
gridLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
gridLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnFill(3, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnFill(4, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnWeightX(2, 1.0);
gridLayout.setColumnWeightX(3, 1.0);

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

gridLayout.setTablePadding(4, 3);
gridLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
gridLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnFill(3, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnFill(4, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnWeightX(2, 1.0);
gridLayout.setColumnWeightX(3, 1.0);

代码示例来源:origin: senbox-org/snap-desktop

gridLayout.setTablePadding(4, 3);
gridLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
gridLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnWeightX(2, 1.0);
grid.setHeaderRow(

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

gridLayout.setTablePadding(4, 3);
gridLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
gridLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
gridLayout.setColumnWeightX(2, 1.0);
grid.setHeaderRow(

代码示例来源:origin: senbox-org/snap-desktop

tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));

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

tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));

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

tableLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnWeightX(2, 1.0);
tableLayout.setRowPadding(0, new Insets(0,4,0,0));

代码示例来源:origin: senbox-org/snap-desktop

private JPanel createTopPanel() {
  refreshButton = ToolButtonFactory.createButton(
      UIUtils.loadImageIcon("icons/ViewRefresh22.png"),
      false);
  refreshButton.setToolTipText("Refresh View");
  refreshButton.setName("refreshButton");
  refreshButton.addActionListener(e -> {
    updateChartData();
    refreshButton.setEnabled(false);
  });
  AbstractButton switchToTableButton = ToolButtonFactory.createButton(
      UIUtils.loadImageIcon("icons/Table24.png"),
      false);
  switchToTableButton.setToolTipText("Switch to Table View");
  switchToTableButton.setName("switchToTableButton");
  switchToTableButton.setEnabled(hasAlternativeView());
  switchToTableButton.addActionListener(e -> showAlternativeView());
  final TableLayout tableLayout = new TableLayout(6);
  tableLayout.setColumnFill(2, TableLayout.Fill.HORIZONTAL);
  tableLayout.setColumnWeightX(2, 1.0);
  tableLayout.setRowPadding(0, new Insets(0, 4, 0, 0));
  JPanel buttonPanel = new JPanel(tableLayout);
  buttonPanel.add(refreshButton);
  tableLayout.setRowPadding(0, new Insets(0, 0, 0, 0));
  buttonPanel.add(switchToTableButton);
  buttonPanel.add(new JPanel());
  return buttonPanel;
}

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

layout.setTablePadding(4, 4);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setColumnFill(3, TableLayout.Fill.BOTH);
layout.setRowWeightY(0, 1.0);
layout.setCellWeightY(0, 3, 1.0);

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

tableLayout.setColumnFill(4, TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnWeightX(4, 1.0);
JPanel buttonPanel = new JPanel(tableLayout);

代码示例来源:origin: senbox-org/snap-desktop

tableLayout.setColumnFill(4, TableLayout.Fill.HORIZONTAL);
tableLayout.setColumnWeightX(4, 1.0);
JPanel buttonPanel = new JPanel(tableLayout);

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

private void createPane() {
  final TableLayout tableLayout = new TableLayout(2);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setColumnFill(0, TableLayout.Fill.BOTH);
  tableLayout.setColumnFill(1, TableLayout.Fill.HORIZONTAL);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setTableWeightY(1.0);

相关文章