949596979899100101102103104
final JPopupMenu menu = new JCRSPopupMenu(mapPane); btn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { menu.show(btn, 0, 0); } }); } /**