本文整理了Java中com.bc.ceres.swing.TableLayout.setTableWeightX()
方法的一些代码示例,展示了TableLayout.setTableWeightX()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setTableWeightX()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setTableWeightX
暂无
代码示例来源: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: senbox-org/s2tbx
private JPanel createUpdateProductSelectorPanel(final SourceProductSelector selector) {
final JPanel subPanel = new JPanel(new BorderLayout(3, 3));
subPanel.add(selector.getProductNameComboBox(), BorderLayout.CENTER);
subPanel.add(selector.getProductFileChooserButton(), BorderLayout.EAST);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableWeightX(1.0);
tableLayout.setRowFill(0, TableLayout.Fill.HORIZONTAL);
tableLayout.setRowFill(1, TableLayout.Fill.HORIZONTAL);
tableLayout.setTablePadding(3, 3);
JPanel panel = new JPanel(tableLayout);
panel.add(selector.getProductNameLabel());
panel.add(subPanel);
panel.add(tableLayout.createVerticalSpacer());
return panel;
}
代码示例来源: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: bcdev/beam
private JPanel createVariablePanel(String title, VariableSelectionPane variablePane) {
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setTableWeightX(1.0);
layout.setRowWeightY(0, 0.0);
layout.setRowWeightY(1, 1.0);
layout.setRowFill(1, TableLayout.Fill.BOTH);
final JPanel panel = new JPanel(layout);
panel.add(new TitledSeparator(title));
variablePane.setPreferredSize(new Dimension(150, 80));
panel.add(variablePane);
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: 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/snap-desktop
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/s2tbx
private TableLayout getTableLayout( int columnCount) {
final TableLayout layout = new TableLayout(columnCount);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.BOTH);
layout.setTableWeightX(1.0);
layout.setTablePadding(3, 3);
return layout;
}
代码示例来源:origin: bcdev/beam
private JPanel createProductsPanel() {
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setTableWeightX(1.0);
layout.setRowWeightY(0, 0.0);
layout.setRowWeightY(1, 1.0);
layout.setRowFill(1, TableLayout.Fill.BOTH);
final JPanel panel = new JPanel(layout);
panel.add(new TitledSeparator("Product Sources"));
locationsPane = new ProductLocationsPane();
locationsPane.setPreferredSize(new Dimension(150, 80));
panel.add(locationsPane);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
public SourceProductPanel(final AppContext appContext) {
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(1, 1);
setLayout(tableLayout);
// Fetch source products
sourceProductSelectorList.add(new SourceProductSelector(appContext));
for (SourceProductSelector selector : sourceProductSelectorList) {
add(selector.createDefaultPanel());
}
add(tableLayout.createVerticalSpacer());
}
代码示例来源: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: 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());
}
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!