gbc.insets.left = 10;
gbc.gridx ++;
add(useNasuTekDSJavaHome, gbc);
gbc.gridwidth = 3;
gbc.gridx ++;
LabelWithHelpIcon useNasuTekDSJavaHomeLabel =
new LabelWithHelpIcon(INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_HOME.get(),
INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_HOME_HELP.get());
gbc.insets.left = 0;
add(useNasuTekDSJavaHomeLabel, gbc);
gbc.gridx = 1;
gbc.gridy ++;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 0.0;
gbc.insets.top = 10;
gbc.gridwidth = 1;
useSpecifiedJavaHome = Utilities.createRadioButton(Message.EMPTY);
useSpecifiedJavaHome.setOpaque(false);
useSpecifiedJavaHome.getAccessibleContext().setAccessibleName(
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_HOME.get().toString() +
" "+INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_HOME_HELP.get());
useNasuTekDSJavaHomeLabel.setLabelFor(useSpecifiedJavaHome);
LabelWithHelpIcon useSpecifiedJavaHomeLabel = new LabelWithHelpIcon(
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_HOME.get(),
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_HOME_HELP.get());
gbc.insets.left = 10;
add(useSpecifiedJavaHome, gbc);
gbc.gridx ++;
gbc.insets.left = 0;
add(useSpecifiedJavaHomeLabel, gbc);
gbc.gridx ++;
javaHome = Utilities.createTextField();
useSpecifiedJavaHomeLabel.setLabelFor(javaHome);
gbc.weightx = 1.0;
gbc.insets.left = 5;
add(javaHome, gbc);
gbc.weightx = 0.0;
browse = Utilities.createButton(INFO_CTRL_PANEL_BROWSE_BUTTON_LABEL.get());
browse.addActionListener(
new BrowseActionListener(javaHome,
BrowseActionListener.BrowseType.LOCATION_DIRECTORY, this));
browse.setOpaque(false);
gbc.gridx ++;
add(browse, gbc);
ButtonGroup group = new ButtonGroup();
group.add(useSpecifiedJavaHome);
group.add(useNasuTekDSJavaHome);
gbc.insets.top = 10;
gbc.insets.left = 0;
gbc.gridx = 0;
gbc.gridwidth = 5;
gbc.gridy ++;
add(new JSeparator(), gbc);
gbc.gridy ++;
JPanel p = new JPanel(new GridBagLayout());
p.setOpaque(false);
gbc.weightx = 1.0;
gbc.weighty = 1.0;
gbc.fill = GridBagConstraints.BOTH;
add(p, gbc);
gbc.insets.top = 10;
gbc.weightx = 0.0;
gbc.weighty = 0.0;
gbc.gridx = 0;
gbc.gridy = 0;
lJavaArgs = Utilities.createPrimaryLabel(
INFO_CTRL_PANEL_JAVA_ARGUMENTS_LABEL.get());
useSpecifiedJavaArgs = Utilities.createRadioButton(Message.EMPTY);
useSpecifiedJavaArgs.getAccessibleContext().setAccessibleName(
INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_ARGS.get().toString() +
" "+INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_ARGS_HELP.get());
useSpecifiedJavaArgs.setOpaque(false);
useNasuTekDSJavaArgs = Utilities.createRadioButton(Message.EMPTY);
useNasuTekDSJavaArgs.setOpaque(false);
lJavaArgs.setLabelFor(useNasuTekDSJavaArgs);
gbc.gridx = 0;
gbc.gridy = 0;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 0.0;
gbc.insets.top = 10;
p.add(lJavaArgs, gbc);
gbc.insets.left = 10;
gbc.gridx ++;
gbc.gridwidth = 1;
p.add(useNasuTekDSJavaArgs, gbc);
gbc.gridx ++;
LabelWithHelpIcon useNasuTekDSJavaArgsLabel = new LabelWithHelpIcon(
INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_ARGS.get(),
INFO_CTRL_PANEL_USE_NASUTEKDS_JAVA_ARGS_HELP.get());
gbc.insets.left = 0;
p.add(useNasuTekDSJavaArgsLabel, gbc);
gbc.gridx = 1;
gbc.gridy ++;
gbc.insets.top = 10;
gbc.insets.left = 10;
p.add(useSpecifiedJavaArgs, gbc);
useNasuTekDSJavaArgsLabel.setLabelFor(useSpecifiedJavaArgs);
useSpecifiedJavaArgs.getAccessibleContext().setAccessibleName(
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_ARGS.get().toString() +
" "+INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_ARGS_HELP.get());
gbc.gridx ++;
LabelWithHelpIcon useSpecifiedJavaArgsLabel = new LabelWithHelpIcon(
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_ARGS.get(),
INFO_CTRL_PANEL_USE_SPECIFIED_NASUTEKDS_JAVA_ARGS_HELP.get());
gbc.insets.left = 0;
p.add(useSpecifiedJavaArgsLabel, gbc);
group = new ButtonGroup();
group.add(useSpecifiedJavaArgs);
group.add(useNasuTekDSJavaArgs);
useSpecifiedJavaArgsLabel.setLabelFor(useNasuTekDSJavaArgs);
argumentsTableModel = new JavaArgumentsTableModel();
LDAPEntryTableCellRenderer renderer = new LDAPEntryTableCellRenderer();
argumentsTable = Utilities.createSortableTable(argumentsTableModel,
renderer);