Fixed menu ordering to be the same as the other examples

This commit is contained in:
nathan 2018-05-02 14:27:08 +02:00
parent d7ca1adea5
commit efe4b2c966
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class TestTraySwt {
source.getParent().remove();
}
}));
mainMenu.add(submenu);
systemTray.getMenu().add(new MenuItem("Quit", new ActionListener() {
@Override
@ -214,7 +214,7 @@ class TestTraySwt {
//System.exit(0); not necessary if all non-daemon threads have stopped.
}
})).setShortcut('q'); // case does not matter
mainMenu.add(submenu);
shell.pack();
shell.open();