in taverna-spreadsheet-import-activity-ui/src/main/java/org/apache/taverna/activities/spreadsheet/views/SpreadsheetImportConfigView.java [678:794]
private void layoutPanel() {
setPreferredSize(new Dimension(450, 400));
setLayout(new BorderLayout());
page1 = new JPanel(new GridBagLayout());
page2 = new JPanel(new GridBagLayout());
contentPanel = new JPanel(cardLayout);
contentPanel.add(page1, "page1");
contentPanel.add(page2, "page2");
add(contentPanel, BorderLayout.CENTER);
// title
titlePanel.setBorder(new CompoundBorder(titlePanel.getBorder(), new EmptyBorder(10, 10, 0, 10)));
add(titlePanel, BorderLayout.NORTH);
titlePanel.add(titleLabel, BorderLayout.NORTH);
titlePanel.add(titleIcon, BorderLayout.WEST);
titlePanel.add(titleMessage, BorderLayout.CENTER);
GridBagConstraints c = new GridBagConstraints();
c.anchor = GridBagConstraints.WEST;
c.fill = GridBagConstraints.HORIZONTAL;
c.weightx = 1;
c.gridx = 0;
c.gridwidth = GridBagConstraints.REMAINDER;
// column range
c.insets = new Insets(10, 10, 0, 10);
page1.add(columnLabel, c);
c.insets = new Insets(10, 25, 0, 0);
c.gridwidth = 1;
c.weightx = 0;
page1.add(new JLabel(SpreadsheetImportUIText.getString("SpreadsheetImportConfigView.from")), c);
c.insets = new Insets(10, 0, 0, 0);
c.gridx = 1;
page1.add(columnFromValue, c);
c.gridx = 2;
page1.add(new JLabel(SpreadsheetImportUIText.getString("SpreadsheetImportConfigView.to")), c);
c.gridx = 3;
page1.add(columnToValue, c);
c.gridx = 0;
c.weightx = 1;
c.insets = new Insets(10, 10, 0, 10);
c.gridwidth = GridBagConstraints.REMAINDER;
// row range
page1.add(rowLabel, c);
c.insets = new Insets(10, 25, 0, 0);
c.gridwidth = 1;
c.gridx = 0;
c.weightx = 0;
page1.add(new JLabel(SpreadsheetImportUIText.getString("SpreadsheetImportConfigView.from")), c);
c.insets = new Insets(10, 0, 0, 0);
c.gridx = 1;
page1.add(rowFromValue, c);
c.gridx = 2;
page1.add(new JLabel(SpreadsheetImportUIText.getString("SpreadsheetImportConfigView.to")), c);
c.gridx = 3;
page1.add(rowToValue, c);
c.gridx = 4;
page1.add(rowSelectAllOption, c);
c.gridx = 5;
c.gridwidth = GridBagConstraints.REMAINDER;
c.insets = new Insets(10, 0, 0, 10);
page1.add(rowExcludeFirstOption, c);
c.insets = new Insets(10, 25, 0, 0);
c.gridx = 0;
page1.add(rowIgnoreBlankRows, c);
c.gridx = 0;
// empty cells
c.insets = new Insets(10, 10, 10, 10);
page1.add(emptyCellLabel, c);
c.insets = new Insets(0, 25, 0, 10);
page1.add(emptyCellEmptyStringOption, c);
JPanel userDefinedPanel = new JPanel(new BorderLayout());
userDefinedPanel.add(emptyCellUserDefinedOption, BorderLayout.WEST);
userDefinedPanel.add(emptyCellUserDefinedValue, BorderLayout.CENTER);
page1.add(userDefinedPanel, c);
c.weighty = 1;
c.anchor = GridBagConstraints.NORTHWEST;
page1.add(emptyCellErrorValueOption, c);
// output format
c.insets = new Insets(10, 10, 10, 10);
c.weighty = 0;
c.weightx = 1;
page2.add(outputFormatLabel, c);
c.insets = new Insets(0, 25, 0, 10);
page2.add(outputFormatMultiplePort, c);
page2.add(outputFormatSinglePort, c);
c.insets = new Insets(0, 50, 0, 10);
JPanel outputFormatDelimiterPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
outputFormatDelimiterPanel.add(outputFormatDelimiterLabel);
outputFormatDelimiterPanel.add(outputFormatDelimiter);
page2.add(outputFormatDelimiterPanel, c);
// column mapping
c.insets = new Insets(10, 10, 0, 10);
page2.add(columnMappingLabel, c);
c.insets = new Insets(10, 10, 10, 10);
c.fill = GridBagConstraints.BOTH;
c.weighty = 1;
page2.add(new JScrollPane(columnMappingTable), c);
buttonPanel.add(backButton);
buttonPanel.add(nextButton);
add(buttonPanel, BorderLayout.SOUTH);
}