本文整理了Java中com.bc.ceres.swing.TableLayout.setTableWeightY()
方法的一些代码示例,展示了TableLayout.setTableWeightY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setTableWeightY()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setTableWeightY
暂无
代码示例来源:origin: senbox-org/s2tbx
private JPanel getModalDialogContent(String message, String information){
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTableWeightX(1.0);
layout.setTableWeightY(0.0);
layout.setRowWeightY(1, 1.0);
layout.setTablePadding(3, 3);
JPanel content = new JPanel(layout);
content.setBorder(new EmptyBorder(4, 4, 4, 4));
content.add(new JLabel(message));
content.add(new JLabel(information));
return content;
}
代码示例来源:origin: bcdev/beam
private JPanel createIOPanel() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(3, 3);
final JPanel ioPanel = new JPanel(tableLayout);
ioPanel.add(createSourceProductPanel());
ioPanel.add(targetProductSelector.createDefaultPanel());
ioPanel.add(tableLayout.createVerticalSpacer());
return ioPanel;
}
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createIOPanel() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(3, 3);
final JPanel ioPanel = new JPanel(tableLayout);
ioPanel.add(createSourceProductPanel());
ioPanel.add(targetProductSelector.createDefaultPanel());
ioPanel.add(tableLayout.createVerticalSpacer());
return ioPanel;
}
代码示例来源:origin: bcdev/beam
private Component createKmzExportPanel(BindingContext bindingContext) {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
final JPanel panel = new JPanel(tableLayout);
final JCheckBox exportKmzBox = new JCheckBox("Export output coordinates to Google Earth (KMZ)");
bindingContext.bind("exportKmz", exportKmzBox);
panel.add(exportKmzBox);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
private Component createKmzExportPanel(BindingContext bindingContext) {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
final JPanel panel = new JPanel(tableLayout);
final JCheckBox exportKmzBox = new JCheckBox("Export output coordinates to Google Earth (KMZ)");
bindingContext.bind("exportKmz", exportKmzBox);
panel.add(exportKmzBox);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
private void resetContentPanel() {
contentPanel.removeAll();
contentLayout = new TableLayout(6);
contentLayout.setTablePadding(2, 2);
contentLayout.setTableFill(TableLayout.Fill.BOTH);
contentLayout.setColumnWeightX(0, 0.0);
contentLayout.setTableWeightX(1.0);
contentLayout.setTableWeightY(0.0);
contentLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
contentPanel.setLayout(contentLayout);
}
代码示例来源:origin: senbox-org/snap-desktop
private JComponent createIncludeOriginalInputBox(BindingContext bindingContext) {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
final JPanel panel = new JPanel(tableLayout);
includeOriginalInputBox = new JCheckBox("Include original input");
bindingContext.bind("includeOriginalInput", includeOriginalInputBox);
panel.add(includeOriginalInputBox);
updateIncludeOriginalInputBox();
return panel;
}
代码示例来源: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: bcdev/beam
private JComponent createIncludeOriginalInputBox(BindingContext bindingContext) {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
final JPanel panel = new JPanel(tableLayout);
includeOriginalInputBox = new JCheckBox("Include original input");
bindingContext.bind("includeOriginalInput", includeOriginalInputBox);
panel.add(includeOriginalInputBox);
updateIncludeOriginalInputBox();
return panel;
}
代码示例来源:origin: senbox-org/s2tbx
private Component createVariablesPanel() {
final String labelName = "Variables"; /*I18N*/
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTablePadding(3, 3);
layout.setTableWeightX(1.0);
layout.setTableWeightY(1.0);
layout.setRowWeightY(0, 0.0);
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder(labelName));
panel.setName(labelName);
panel.add(createVariablesButtonPanel(labelName));
panel.add(createVariablesTable(labelName));
return panel;
}
代码示例来源:origin: bcdev/beam
private Component createVariablesPanel() {
final String labelName = "Variables"; /*I18N*/
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTablePadding(3, 3);
layout.setTableWeightX(1.0);
layout.setTableWeightY(1.0);
layout.setRowWeightY(0, 0.0);
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder(labelName));
panel.setName(labelName);
panel.add(createVariablesButtonPanel(labelName));
panel.add(createVariablesTable(labelName));
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
public TitledSeparator(String title) {
final TableLayout tableLayout = new TableLayout(3);
tableLayout.setTableAnchor(TableLayout.Anchor.CENTER);
tableLayout.setTableWeightY(0.0);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTablePadding(2, 0);
tableLayout.setColumnWeightX(0, 1.0);
tableLayout.setColumnWeightX(1, 0.0);
tableLayout.setColumnWeightX(2, 1.0);
setLayout(tableLayout);
add(new JSeparator());
labelComponent = new JLabel(title);
add(labelComponent);
add(new JSeparator());
}
代码示例来源:origin: senbox-org/s2tbx
private void init() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(1.0);
tableLayout.setTablePadding(3, 3);
setLayout(tableLayout);
add(createVariablesPanel());
}
代码示例来源:origin: senbox-org/snap-desktop
private void init() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(1.0);
tableLayout.setTablePadding(3, 3);
setLayout(tableLayout);
add(createVariablesPanel());
add(createConditionsPanel());
}
代码示例来源:origin: bcdev/beam
private void init() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(1.0);
tableLayout.setTablePadding(3, 3);
setLayout(tableLayout);
add(createVariablesPanel());
add(createConditionsPanel());
}
代码示例来源:origin: senbox-org/snap-desktop
private void initComponents() {
TableLayout layout = new TableLayout(2);
this.setLayout(layout);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableWeightY(1.0);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTablePadding(2, 2);
layout.setColumnWeightX(0, 0.5);
layout.setColumnWeightX(1, 0.5);
add(createInfoPanel());
add(createAttachDetachPanel());
updateUIState();
}
代码示例来源:origin: bcdev/beam
private void initComponents() {
TableLayout layout = new TableLayout(2);
this.setLayout(layout);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableWeightY(1.0);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTablePadding(2, 2);
layout.setColumnWeightX(0, 0.5);
layout.setColumnWeightX(1, 0.5);
add(createInfoPanel());
add(createAttachDetachPanel());
updateUIState();
}
代码示例来源:origin: senbox-org/snap-desktop
private void init() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTablePadding(3, 3);
setLayout(tableLayout);
tableLayout.setRowWeightY(0, 1.0);
add(createSourceProductsPanel());
targetProductSelector.getModel().setProductName("level-3");
add(targetProductSelector.createDefaultPanel());
}
代码示例来源:origin: bcdev/beam
private void init() {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableWeightY(0.0);
tableLayout.setTablePadding(3, 3);
setLayout(tableLayout);
tableLayout.setRowWeightY(0, 1.0);
add(createSourceProductsPanel());
targetProductSelector.getModel().setProductName("level-3");
add(targetProductSelector.createDefaultPanel());
}
内容来源于网络,如有侵权,请联系作者删除!