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

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

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

TableLayout.createHorizontalSpacer介绍

暂无

代码示例

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

private Component[] createTimeDeltaComponents(TableLayout tableLayout) {
  final JLabel boxLabel = new JLabel("Allowed time difference:");
  timeBox = new JCheckBox("Use time difference constraint");
  final Component horizontalSpacer = tableLayout.createHorizontalSpacer();
  final Component horizontalSpacer2 = tableLayout.createHorizontalSpacer();
  timeSpinner = new JSpinner(new SpinnerNumberModel(1, 1, null, 1));
  timeSpinner.setEnabled(false);
  timeUnitComboBox = new JComboBox(new String[]{"Day(s)", "Hour(s)", "Minute(s)"});
  timeUnitComboBox.setEnabled(false);
  timeBox.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      timeSpinner.setEnabled(timeBox.isSelected());
      timeUnitComboBox.setEnabled(timeBox.isSelected());
    }
  });
  return new Component[]{boxLabel, timeBox, horizontalSpacer, horizontalSpacer2, timeSpinner, timeUnitComboBox};
}

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

private Component[] createTimeDeltaComponents(TableLayout tableLayout) {
  final JLabel boxLabel = new JLabel("Allowed time difference:");
  timeBox = new JCheckBox("Use time difference constraint");
  final Component horizontalSpacer = tableLayout.createHorizontalSpacer();
  final Component horizontalSpacer2 = tableLayout.createHorizontalSpacer();
  timeSpinner = new JSpinner(new SpinnerNumberModel(1, 1, null, 1));
  timeSpinner.setEnabled(false);
  timeUnitComboBox = new JComboBox<>(new String[]{"Day(s)", "Hour(s)", "Minute(s)"});
  timeUnitComboBox.setEnabled(false);
  timeBox.addActionListener(e -> {
    timeSpinner.setEnabled(timeBox.isSelected());
    timeUnitComboBox.setEnabled(timeBox.isSelected());
  });
  return new Component[]{boxLabel, timeBox, horizontalSpacer, horizontalSpacer2, timeSpinner, timeUnitComboBox};
}

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

"S2TBXCacheOptionsPanel.cachePolicyComboBox.text")));
comboPanel.add(box);
comboPanel.add(tableLayout.createHorizontalSpacer());
comboPanel.add(informationLabel);
comboPanel.add(tableLayout.createVerticalSpacer());

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

private JPanel createExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(4);
  tableLayout.setTablePadding(4, 0);
  tableLayout.setTableFill(TableLayout.Fill.VERTICAL);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setColumnWeightX(3, 1.0);
  tableLayout.setTableWeightY(1.0);
  final JPanel exportPanel = new JPanel(tableLayout);
  exportPanel.add(createIncludeCheckbox(bindingContext, "Bands", "exportBands"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Tie-point grids", "exportTiePoints"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Masks", "exportMasks"));
  exportPanel.add(tableLayout.createHorizontalSpacer());
  return exportPanel;
}

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

private JPanel createExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(4);
  tableLayout.setTablePadding(4, 0);
  tableLayout.setTableFill(TableLayout.Fill.VERTICAL);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setColumnWeightX(3, 1.0);
  tableLayout.setTableWeightY(1.0);
  final JPanel exportPanel = new JPanel(tableLayout);
  exportPanel.add(createIncludeCheckbox(bindingContext, "Bands", "exportBands"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Tie-point grids", "exportTiePoints"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Masks", "exportMasks"));
  exportPanel.add(tableLayout.createHorizontalSpacer());
  return exportPanel;
}

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

mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());

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

mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());
mainPanel.add(tableLayout.createHorizontalSpacer());

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

panel.add(layout.createHorizontalSpacer());
editExpressionButton.addActionListener(createEditExpressionButtonListener());
panel.add(layout.createHorizontalSpacer());
panel.add(editExpressionButton);
panel.add(layout.createHorizontalSpacer());
editValidExpressionButton.addActionListener(createEditValidExpressionButtonListener());
panel.add(layout.createHorizontalSpacer());
panel.add(editValidExpressionButton);
setContent(panel);

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

panel.add(layout.createHorizontalSpacer());
editExpressionButton.addActionListener(createEditExpressionButtonListener());
panel.add(layout.createHorizontalSpacer());
panel.add(editExpressionButton);
panel.add(layout.createHorizontalSpacer());
editValidExpressionButton.addActionListener(createEditValidExpressionButtonListener());
panel.add(layout.createHorizontalSpacer());
panel.add(editValidExpressionButton);
setContent(panel);

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

pageUI.add(showOnlyDisplayedComponents[0]);
pageUI.add(tableLayout.createHorizontalSpacer());
pageUI.add(PreferenceUtils.createTitleLabel("Other Settings"));
pageUI.add(showSuppressedAgainComponent[0]);

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

pageUI.add(snapToExactGeolocationComponents[0]);
pageUI.add(pixelGeocodingfractionAccuracyComponents[0]);
tableLayout.createHorizontalSpacer();

相关文章