* removed trayicon popupmenu title

* added some menu items to trayicon


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5213 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
f1ori 16 years ago
parent 5a637f004d
commit 9589dfe080

@ -81,7 +81,7 @@ public final class yacyTray {
public static PopupMenu setupPopupMenu() {
String label;
// this is the popup menu
PopupMenu menu = new PopupMenu("YaCy");
PopupMenu menu = new PopupMenu();
MenuItem menuItem;
// YaCy Search
@ -95,8 +95,32 @@ public final class yacyTray {
});
menu.add(menuItem);
// Quit
// Compare YaCy
if(deutsch) label = "Vergleichs-Suche";
else label = "Compare YaCy";
menuItem = new MenuItem(label);
menuItem.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
openBrowser("compare_yacy.html");
}
});
menu.add(menuItem);
// Peer Administration
if(deutsch) label = "Peer Administration";
else label = "Peer Administration";
menuItem = new MenuItem(label);
menuItem.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
openBrowser("Status.html");
}
});
menu.add(menuItem);
// Separator
menu.addSeparator();
// Quit
if(deutsch) label = "Beenden";
else label = "Shutdown";
menuItem = new MenuItem(label);

Loading…
Cancel
Save