minor changes:
menu names (load->open, quick->exit)
This commit is contained in:
parent
944a812baa
commit
215df016b9
|
@ -24,7 +24,7 @@
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: GUI.java,v 1.20 2007/02/01 16:00:40 fros4943 Exp $
|
* $Id: GUI.java,v 1.21 2007/02/27 13:51:58 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
@ -259,15 +259,15 @@ public class GUI {
|
||||||
menuItem.addActionListener(guiEventHandler);
|
menuItem.addActionListener(guiEventHandler);
|
||||||
menu.add(menuItem);
|
menu.add(menuItem);
|
||||||
|
|
||||||
menuItem = new JMenuItem("Load simulation");
|
menuItem = new JMenuItem("Open simulation");
|
||||||
menuItem.setMnemonic(KeyEvent.VK_L);
|
menuItem.setMnemonic(KeyEvent.VK_O);
|
||||||
menuItem.setActionCommand("load sim");
|
menuItem.setActionCommand("open sim");
|
||||||
menuItem.addActionListener(guiEventHandler);
|
menuItem.addActionListener(guiEventHandler);
|
||||||
menu.add(menuItem);
|
menu.add(menuItem);
|
||||||
|
|
||||||
menuItem = new JMenuItem("Load simulation (quick)");
|
menuItem = new JMenuItem("Quick-open simulation");
|
||||||
menuItem.setMnemonic(KeyEvent.VK_L);
|
menuItem.setMnemonic(KeyEvent.VK_Q);
|
||||||
menuItem.setActionCommand("load sim quick");
|
menuItem.setActionCommand("open sim quick");
|
||||||
menuItem.addActionListener(guiEventHandler);
|
menuItem.addActionListener(guiEventHandler);
|
||||||
menu.add(menuItem);
|
menu.add(menuItem);
|
||||||
|
|
||||||
|
@ -286,9 +286,9 @@ public class GUI {
|
||||||
|
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
menuItem = new JMenuItem("Quit");
|
menuItem = new JMenuItem("Exit");
|
||||||
menuItem.setMnemonic(KeyEvent.VK_Q);
|
menuItem.setMnemonic(KeyEvent.VK_X);
|
||||||
menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,
|
menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,
|
||||||
ActionEvent.CTRL_MASK));
|
ActionEvent.CTRL_MASK));
|
||||||
menuItem.setActionCommand("quit");
|
menuItem.setActionCommand("quit");
|
||||||
menuItem.addActionListener(guiEventHandler);
|
menuItem.addActionListener(guiEventHandler);
|
||||||
|
@ -1957,9 +1957,9 @@ public class GUI {
|
||||||
myGUI.doCreateSimulation(true);
|
myGUI.doCreateSimulation(true);
|
||||||
} else if (e.getActionCommand().equals("close sim")) {
|
} else if (e.getActionCommand().equals("close sim")) {
|
||||||
myGUI.doRemoveSimulation(true);
|
myGUI.doRemoveSimulation(true);
|
||||||
} else if (e.getActionCommand().equals("load sim")) {
|
} else if (e.getActionCommand().equals("open sim")) {
|
||||||
myGUI.doLoadConfig(true, false);
|
myGUI.doLoadConfig(true, false);
|
||||||
} else if (e.getActionCommand().equals("load sim quick")) {
|
} else if (e.getActionCommand().equals("open sim quick")) {
|
||||||
myGUI.doLoadConfig(true, true);
|
myGUI.doLoadConfig(true, true);
|
||||||
} else if (e.getActionCommand().equals("save sim")) {
|
} else if (e.getActionCommand().equals("save sim")) {
|
||||||
myGUI.doSaveConfig(true);
|
myGUI.doSaveConfig(true);
|
||||||
|
|
Loading…
Reference in a new issue