addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
PointLayer p = (PointLayer) evt.getSource();
System.out.println("pressed " + p);
String name = p.getName();
final Dialog d = new Dialog(name);
d.setLayout(new BorderLayout());
WebBrowser wb = new WebBrowser();
wb.setPage(getDescription(name), "http://localhost");
d.addComponent(BorderLayout.CENTER, wb);
d.setDisposeWhenPointerOutOfBounds(true);
Command backCommand = new Command("Back") {
public void actionPerformed(ActionEvent evt) {
d.dispose();
}
};
d.addCommand(backCommand);
d.setBackCommand(backCommand);
d.show(1, 1, 1, 1);
}
});
}