box.add(new JTextField(TreeViewApp.getAnnouncementUrl()));
JButton yesB = new JButton("Open in browser");
yesB.addActionListener(new ActionListener () {
public void actionPerformed(ActionEvent arg0) {
BrowserControl bc = BrowserControl.getBrowserControl();
try {
bc.displayURL(TreeViewApp.getAnnouncementUrl());
} catch (IOException e) {
JOptionPane.showMessageDialog(RegEditor.this, "Failed to upen url " + TreeViewApp.getAnnouncementUrl());
e.printStackTrace();
}
}