Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JPopupMenu m = new JPopupMenu();
- m.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
- final JCheckBoxMenuItem mute = new JCheckBoxMenuItem("Mute");
- m.add(mute);
- mute.addActionListener(new ActionListener(){
- @Override
- public void actionPerformed(ActionEvent e){
- if(mute.isSelected())
- Mute = true;
- }
- });
- m.addSeparator();
- m.add(new AbstractAction("Minimize") {
- @Override
- public void actionPerformed(ActionEvent e) {
- sysTray();
- }
- });
Add Comment
Please, Sign In to add comment