menuBar.add(helpMenu);
// setResizable(false);
// Labels to identify the text fields
final Caption labelInputFile;
final Caption labelInputFileFormat;
final Caption labelOutputFile;
final Caption labelXmlFile;
final Caption labelRunParameters;
final Caption labelLanguage;
final Caption labelEncoding;
// Strings for the labels
final String inputString = "Input Directory: ";
final String inputFileFormatString = "Input File Format: ";
final String outputString = "Output Directory: ";
final String xmlString = "Location of Analysis Engine XML Descriptor: ";
final String runParametersString = "XML Tag containing Text (optional): ";
// Create field label captions (right-aligned JLabel):
labelInputFile = new Caption(inputString);
labelInputFileFormat = new Caption(inputFileFormatString);
labelOutputFile = new Caption(outputString);
labelXmlFile = new Caption(xmlString);
labelRunParameters = new Caption(runParametersString);
labelLanguage = new Caption("Language: ");
labelEncoding = new Caption("Character Encoding: ");
JPanel controlPanel = new JPanel();
controlPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
controlPanel.setLayout(new SpringLayout());