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

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

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

TableLayout.setRowPadding介绍

暂无

代码示例

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

private static TableLayout createLayout() {
    final TableLayout tableLayout = new TableLayout(1);
    tableLayout.setRowPadding(0, new Insets(4, 4, 4, 0));
    tableLayout.setColumnWeightX(0, 1.0);
    tableLayout.setRowWeightY(1, 1.0);
    tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
    tableLayout.setRowFill(1, TableLayout.Fill.BOTH);
    return tableLayout;
  }
}

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

buttonPanel.add(moveDownFileButton);
tableLayout.setRowPadding(0, new Insets(1, 4, 1, 4));
sourceProductPanel.add(buttonPanel);

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

buttonPanel.add(addFileButton);
buttonPanel.add(removeFileButton);
tableLayout.setRowPadding(0, new Insets(1, 4, 1, 4));
sourceProductPanel.add(buttonPanel);

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

buttonPanel.add(addFileButton);
buttonPanel.add(removeFileButton);
tableLayout.setRowPadding(0, new Insets(1, 4, 1, 4));
sourceProductPanel.add(buttonPanel);

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

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());

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

@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

private JPanel createButtonPanel() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setRowPadding(0, new Insets(0, 4, 4, 4));
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  JPanel buttonPanel = new JPanel(tableLayout);
  AbstractButton helpButton = ToolButtonFactory.createButton(UIUtils.loadImageIcon("icons/Help22.png"), false);
  helpButton.setToolTipText("Help");
  buttonPanel.add(matrixSizeSpinner);
  buttonPanel.add(tableLayout.createVerticalSpacer());
  buttonPanel.add(helpButton);
  final PageComponentDescriptor descriptor = getDescriptor();
  if (descriptor.getHelpId() != null) {
    HelpSys.enableHelpOnButton(helpButton, descriptor.getHelpId());
    HelpSys.enableHelpKey(buttonPanel, descriptor.getHelpId());
  }
  return buttonPanel;
}

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

tableLayout.setColumnWeightX(4, 1.0);
JPanel buttonPanel = new JPanel(tableLayout);
tableLayout.setRowPadding(0, new Insets(0,4,0,0));
buttonPanel.add(zoomAllButton);
tableLayout.setRowPadding(0, new Insets(0,0,0,0));
buttonPanel.add(propertiesButton);
buttonPanel.add(saveButton);

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

tableLayout.setColumnWeightX(4, 1.0);
JPanel buttonPanel = new JPanel(tableLayout);
tableLayout.setRowPadding(0, new Insets(0, 4, 0, 0));
buttonPanel.add(zoomAllButton);
tableLayout.setRowPadding(0, new Insets(0, 0, 0, 0));
buttonPanel.add(propertiesButton);
buttonPanel.add(saveButton);

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

@Override
protected JPanel createPanel(BindingContext context) {
  TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(Anchor.NORTHWEST);
  tableLayout.setTablePadding(4, 10);
  tableLayout.setTableFill(Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setRowWeightY(4, 1.0);
  JPanel pageUI = new JPanel(tableLayout);
  PropertyEditorRegistry registry = PropertyEditorRegistry.getInstance();
  Property showNavigationControl = context.getPropertySet().getProperty(ProductSceneView.PREFERENCE_KEY_IMAGE_NAV_CONTROL_SHOWN);
  Property showScrollBars = context.getPropertySet().getProperty(ProductSceneView.PREFERENCE_KEY_IMAGE_SCROLL_BARS_SHOWN);
  Property reverseZoom = context.getPropertySet().getProperty(ProductSceneView.PREFERENCE_KEY_INVERT_ZOOMING);
  JComponent[] showNavigationControlComponents = registry.findPropertyEditor(showNavigationControl.getDescriptor()).createComponents(showNavigationControl.getDescriptor(), context);
  JComponent[] showScrollBarsComponents = registry.findPropertyEditor(showScrollBars.getDescriptor()).createComponents(showScrollBars.getDescriptor(), context);
  JComponent[] reverseZoomComponents = registry.findPropertyEditor(showScrollBars.getDescriptor()).createComponents(reverseZoom.getDescriptor(), context);
  tableLayout.setRowPadding(0, new Insets(10, 80, 10, 4));
  pageUI.add(showNavigationControlComponents[0]);
  pageUI.add(showScrollBarsComponents[0]);
  pageUI.add(reverseZoomComponents[0]);
  pageUI.add(tableLayout.createVerticalSpacer());
  return pageUI;
}

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

JComponent[] autocompleteComponents = registry.findPropertyEditor(autocompleteControl.getDescriptor()).createComponents(autocompleteControl.getDescriptor(), context);
tableLayout.setRowPadding(0, new Insets(10, 80, 10, 4));
pageUI.add(pathValidationComponents[0]);
pageUI.add(noProductWarningComponents[0]);

相关文章