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

View File

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