gbc.gridy = gridY;
gbc.gridx = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 0;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 5, 0, 5);
carrierPanel.add(label, gbc);
if (entry.isMandatory())
{
gbc = new GridBagConstraints();
gbc.gridy = gridY;
gbc.gridx = 1;
gbc.anchor = GridBagConstraints.WEST;
gbc.insets = new Insets(5, 0, 0, 0);
final JLabel mandatoryLabel = new JLabel("*");
mandatoryLabel.setToolTipText(messages.getString("ParameterReportControllerPane.MandatoryParameter"));
carrierPanel.add(mandatoryLabel, gbc);
}
gbc = new GridBagConstraints();
gbc.gridy = gridY;
gbc.gridx = 2;
gbc.anchor = GridBagConstraints.WEST;
gbc.weightx = 1;
if (editor instanceof ButtonParameterComponent)
{
gbc.fill = GridBagConstraints.HORIZONTAL;
}
gbc.ipadx = 100;
gbc.insets = new Insets(5, 0, 0, 0);
carrierPanel.add(editor, gbc);
gbc = new GridBagConstraints();
gbc.gridy = gridY + 1;
gbc.gridx = 1;
gbc.anchor = GridBagConstraints.NORTH;
gbc.weightx = 1;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(5, 0, 0, 0);
carrierPanel.add(errorLabel, gbc);
}