本文整理了Java中com.bc.ceres.swing.TableLayout.<init>()
方法的一些代码示例,展示了TableLayout.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.<init>()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:<init>
暂无
代码示例来源:origin: senbox-org/snap-desktop
public FilterPropertiesForm(Filter filter) {
// super(new GridBagLayout());
super(new TableLayout());
setBorder(new EmptyBorder(4, 4, 4, 4));
createUI();
setFilter(filter);
}
代码示例来源: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
public FilterPropertiesForm(Filter filter) {
// super(new GridBagLayout());
super(new TableLayout());
setBorder(new EmptyBorder(4, 4, 4, 4));
createUI();
setFilter(filter);
}
代码示例来源: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: 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: 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 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 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: senbox-org/s2tbx
public ParametersPanel(boolean displayUnitColumn) {
TableLayout layout = new TableLayout(displayUnitColumn ? 3 : 2);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setTablePadding(3, 3);
setLayout(layout);
}
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!