linkControls.add(memBox);
memBox.setSelectedIndex(0);
JLabel procLabel = new JLabel(GT._("Number of Processors:"));
linkLabels.add(procLabel);
SpinnerModel procModel = new SpinnerNumberModel(1, 1, 16, 1);
procSpinner = new JSpinner(procModel);
procSpinner.setEditor(new JSpinner.NumberEditor(procSpinner, "#"));
linkControls.add(procSpinner);
linkPanel.add(linkLabels, BorderLayout.LINE_START);
linkPanel.add(linkControls, BorderLayout.CENTER);
showPanel.add(linkPanel, BorderLayout.NORTH);
JPanel routePanel = new JPanel(new BorderLayout());
TitledBorder routeTitle = BorderFactory.createTitledBorder(GT._("Route"));
routePanel.setBorder(routeTitle);
JPanel routeLabels = new JPanel(new GridLayout(4,1));
JPanel routeControls = new JPanel(new GridLayout(4,1));
JLabel methLabel = new JLabel(GT._("Method: "));
routeLabels.add(methLabel);
methBox = new JComboBox(METHOD_LIST);
routeControls.add(methBox);
methBox.setSelectedIndex(0);
methBox.addActionListener(this);
JLabel basisLabel = new JLabel(GT._("Basis Set: "));
routeLabels.add(basisLabel);
basisBox = new JComboBox(BASIS_LIST);
routeControls.add(basisBox);
basisBox.setSelectedIndex(3);
JLabel dfLabel =
new JLabel(GT._("Density Fitting Basis Set (DFT Only): "));
routeLabels.add(dfLabel);
dfBox = new JComboBox(DF_LIST);
routeControls.add(dfBox);
dfBox.setSelectedIndex(0);
JLabel optsLabel = new JLabel(GT._("Job Options: "));
routeLabels.add(optsLabel);
optsField = new JTextField(20);
routeControls.add(optsField);
optsField.setText("opt");
routePanel.add(routeLabels, BorderLayout.LINE_START);
routePanel.add(routeControls, BorderLayout.CENTER);
showPanel.add(routePanel, BorderLayout.CENTER);
JPanel molPanel = new JPanel(new BorderLayout());
TitledBorder molTitle =
BorderFactory.createTitledBorder(GT._("Molecular Properties"));
molPanel.setBorder(molTitle);
JPanel molLabels = new JPanel(new GridLayout(3,1));
JPanel molControls = new JPanel(new GridLayout(3,1));
JLabel chargeLabel = new JLabel(GT._("Total Charge: "));
molLabels.add(chargeLabel);
SpinnerModel chargeModel = new SpinnerNumberModel(0, -10, 10, 1);
chargeSpinner = new JSpinner(chargeModel);
chargeSpinner.setEditor(new JSpinner.NumberEditor(chargeSpinner, "#"));
molControls.add(chargeSpinner);
JLabel multLabel = new JLabel(GT._("Multiplicity: "));
molLabels.add(multLabel);
SpinnerModel multModel = new SpinnerNumberModel(1, 0, 10, 1);
multSpinner = new JSpinner(multModel);
multSpinner.setEditor(new JSpinner.NumberEditor(multSpinner, "#"));
molControls.add(multSpinner);
JLabel selectLabel = new JLabel(GT._("Selection: "));