JMenuItem browserMenu = toolsMenu.add(new JMenuItem("Service Browser..."));
final JFrame parent = this;
browserMenu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
try {
Browser browser = new Browser(config, parent);
browser.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});