From 1d716ae7adeefb9462ba2f3c2554e19e35afa33b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 20 Oct 2009 12:18:17 +0000
Subject: [PATCH] Fix for issue 4301 (Exit option is menu is the first one, should be the last one.)
---
opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
index 9f75684..4c4a6c7 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
@@ -125,10 +125,20 @@
JMenu menu = Utilities.createMenu(INFO_CTRL_PANEL_FILE_MENU.get(),
INFO_CTRL_PANEL_FILE_MENU_DESCRIPTION.get());
menu.setMnemonic(KeyEvent.VK_F);
+ JMenuItem menuItem = Utilities.createMenuItem(
+ INFO_CTRL_PANEL_CONNECT_TO_SERVER_MENU.get());
+ menuItem.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent ev)
+ {
+ connectToServerClicked();
+ }
+ });
+ menu.add(menuItem);
+
if (!Utilities.isMacOS())
{
- JMenuItem menuItem =
- Utilities.createMenuItem(INFO_CTRL_PANEL_EXIT_MENU.get());
+ menuItem = Utilities.createMenuItem(INFO_CTRL_PANEL_EXIT_MENU.get());
menuItem.addActionListener(new ActionListener()
{
/**
@@ -141,16 +151,6 @@
});
menu.add(menuItem);
}
- JMenuItem menuItem = Utilities.createMenuItem(
- INFO_CTRL_PANEL_CONNECT_TO_SERVER_MENU.get());
- menuItem.addActionListener(new ActionListener()
- {
- public void actionPerformed(ActionEvent ev)
- {
- connectToServerClicked();
- }
- });
- menu.add(menuItem);
return menu;
}
--
Gitblit v1.10.0