| | |
| | | } |
| | | menus[0].setSelected(true); |
| | | |
| | | // Add the view menus |
| | | // Add the referral and sort data menus |
| | | menu.add(new JSeparator()); |
| | | final JCheckBoxMenuItem sortUserData = |
| | | new JCheckBoxMenuItem(INFO_CTRL_PANEL_SORT_USER_DATA.get().toString()); |
| | |
| | | } |
| | | } |
| | | }); |
| | | // Add the refresh menu |
| | | menu.add(new JSeparator()); |
| | | final JMenuItem refresh = |
| | | new JMenuItem(INFO_CTRL_PANEL_REFRESH_DATA.get().toString()); |
| | | menu.add(refresh); |
| | | refresh.addActionListener(new ActionListener() |
| | | { |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | entryPane.getController().startRefresh(null); |
| | | } |
| | | }); |
| | | return menu; |
| | | } |
| | | |