JPanel mainPanel = new JPanel(new BorderLayout());
_resultsArea = new JTextArea();
mainPanel.add(new JScrollPane(_resultsArea), BorderLayout.CENTER);
_queryNamingServiceButton = new JButton("Check Naming Service Contents");
_queryNamingServiceButton.addActionListener(new QueryRegistry());
_pathField = new JTextField();
_attributeNameField = new JTextField();
_attributeValueField = new JTextField();
JPanel bottomPanel = new JPanel(new GridLayout(4, 2));
bottomPanel.add(new JLabel("Attribute Name"));
bottomPanel.add(_attributeNameField);
bottomPanel.add(new JLabel("AttributeValue"));
bottomPanel.add(_attributeValueField);
bottomPanel.add(new JLabel("Context"));
bottomPanel.add(_pathField);
bottomPanel.add(_queryNamingServiceButton);
mainPanel.add(bottomPanel, BorderLayout.SOUTH);
getContentPane().add(mainPanel);
setSize(250, 200);