Fixed menu ordering to be the same as the other examples
This commit is contained in:
parent
d7ca1adea5
commit
efe4b2c966
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user