menuBar.add(fileMenu);
menuBar.add(helpMenu);
// Labels to identify the text fields
// final Caption labelJdbcProps = new Caption("JDBC Properties File: ");
final Caption labelStyleMapFile = new Caption(
"TypeSystem or AE Descriptor File: ");
JPanel controlPanel = new JPanel();
controlPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
controlPanel.setLayout(new SpringLayout());
// Once we add components to controlPanel, we'll
// call SpringUtilities::makeCompactGrid on it.
// controlPanel.setLayout(new GridLayout(4, 2, 8, 4));
// // Set default values for input fields
taeDescriptorFileSelector = new FileSelector("", "TAE Descriptor File",
JFileChooser.FILES_ONLY, uimaHomeDir);
File descriptorFile = new File(uimaHomeDir,
"examples/descriptors/analysis_engine/PersonTitleAnnotator.xml");
taeDescriptorFileSelector.setSelected(descriptorFile.getAbsolutePath());
Caption labelDocumentID = new Caption("Document ID:");
this.documentIDField = new JTextField();
controlPanel.add(labelStyleMapFile);
controlPanel.add(taeDescriptorFileSelector);
controlPanel.add(labelDocumentID);
controlPanel.add(documentIDField);
// ------ copied here
Caption displayFormatLabel = new Caption("Results Display Format:");
controlPanel.add(displayFormatLabel);
JPanel displayFormatPanel = new JPanel();
displayFormatPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
displayFormatPanel.setBorder(BorderFactory