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

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

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

TableLayout.setColumnPadding介绍

暂无

代码示例

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

tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));
tableLayout.setColumnWeightX(0, 0.0);
tableLayout.setColumnWeightX(1, 0.0);

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

private JComponent createUI() {
  final TableLayout layout = new TableLayout(5);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableWeightX(1.0);
  layout.setTableWeightY(0.0);
  layout.setTablePadding(3, 3);
  layout.setColumnPadding(1, new Insets(3, 6, 3, 6));
  layout.setColumnPadding(3, new Insets(3, 6, 3, 6));
  layout.setColumnWeightX(1, 0.0);
  layout.setColumnWeightX(3, 0.0);
  final JPanel panel = new JPanel(layout);
  panel.add(new JLabel("Min value:"), cell(0, 0));
  panel.add(new JLabel("Raster:"), cell(0, 2));
  panel.add(new JLabel("Max value:"), cell(0, 4));
  final DoubleFormatter formatter = new DoubleFormatter("###0.0###");
  final JFormattedTextField minValueField = new JFormattedTextField(formatter);
  final JFormattedTextField maxValueField = new JFormattedTextField(formatter);
  final JComboBox rasterNameComboBox = new JComboBox(rasterModel);
  panel.add(minValueField);
  panel.add(new JLabel("<html><b>&lt;=</b>"));
  panel.add(rasterNameComboBox);
  panel.add(new JLabel("<html><b>&lt;=</b>"));
  panel.add(maxValueField);
  final BindingContext context = new BindingContext(container);
  context.bind("rasterName", rasterNameComboBox);
  context.bind("minValue", minValueField);
  context.bind("maxValue", maxValueField);
  return panel;
}

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

private JComponent createUI() {
  final TableLayout layout = new TableLayout(5);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableWeightX(1.0);
  layout.setTableWeightY(0.0);
  layout.setTablePadding(3, 3);
  layout.setColumnPadding(1, new Insets(3, 6, 3, 6));
  layout.setColumnPadding(3, new Insets(3, 6, 3, 6));
  layout.setColumnWeightX(1, 0.0);
  layout.setColumnWeightX(3, 0.0);
  final JPanel panel = new JPanel(layout);
  panel.add(new JLabel("Min value:"), cell(0, 0));
  panel.add(new JLabel("Raster:"), cell(0, 2));
  panel.add(new JLabel("Max value:"), cell(0, 4));
  final DoubleFormatter formatter = new DoubleFormatter("###0.0###");
  final JFormattedTextField minValueField = new JFormattedTextField(formatter);
  final JFormattedTextField maxValueField = new JFormattedTextField(formatter);
  final JComboBox rasterNameComboBox = new JComboBox(rasterModel);
  panel.add(minValueField);
  panel.add(new JLabel("<html><b>&lt;=</b>"));
  panel.add(rasterNameComboBox);
  panel.add(new JLabel("<html><b>&lt;=</b>"));
  panel.add(maxValueField);
  final BindingContext context = new BindingContext(container);
  context.bind("rasterName", rasterNameComboBox);
  context.bind("minValue", minValueField);
  context.bind("maxValue", maxValueField);
  return panel;
}

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

tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));
tableLayout.setColumnWeightX(0, 0.0);
tableLayout.setColumnWeightX(1, 0.0);

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

tableLayout.setColumnFill(0, TableLayout.Fill.NONE);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(4, 4, 4, 20));
tableLayout.setColumnWeightX(0, 0.0);
tableLayout.setColumnWeightX(1, 0.0);

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

tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(3, 4, 4, 4));
tableLayout.setTableWeightX(0.0);
tableLayout.setTableWeightY(0.0);

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

tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTablePadding(4, 4);
tableLayout.setColumnPadding(0, new Insets(3, 4, 4, 4));
tableLayout.setTableWeightX(0.0);
tableLayout.setTableWeightY(0.0);

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

layout.setColumnWeightX(7, 1.0);
layout.setColumnWeightX(8, 0.0);
layout.setColumnPadding(2, new Insets(3, 0, 3, 12));
layout.setColumnPadding(5, new Insets(3, 0, 3, 12));
final JPanel panel = new JPanel(layout);
pixelXUnit = new JLabel(NonSI.DEGREE_ANGLE.toString());

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

layout.setColumnWeightX(7, 1.0);
layout.setColumnWeightX(8, 0.0);
layout.setColumnPadding(2, new Insets(3, 0, 3, 12));
layout.setColumnPadding(5, new Insets(3, 0, 3, 12));
final JPanel panel = new JPanel(layout);
final DoubleFormatter doubleFormatter = new DoubleFormatter("###0.0##");

相关文章