Package nu.fw.jeti.plugins.buddyspacemaps.gui

Examples of nu.fw.jeti.plugins.buddyspacemaps.gui.BSMapMenuItem.addActionListener()


            for (int j=0; j<maps.length; j++) {
                // adds menuItem for map
                String label = maps[j].getName();
                if (label.length() >= 4) label = label.substring(0, label.length()-4);
                JMenuItem menuItem = new BSMapMenuItem(label, maps[j].getName(), dirs[i].getName());
                menuItem.addActionListener( new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        loadMapForItem((BSMapMenuItem)e.getSource());
                    }
                });
                submenu.add(menuItem);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.