| | |
| | | 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() |
| | | { |
| | | /** |
| | |
| | | }); |
| | | 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; |
| | | } |
| | | |