|
@@ -25,17 +25,17 @@ public class Tray {
|
|
|
|
|
|
this.systemTray.setImage(this.getClass().getResource("resources/printer_ok.png"));
|
|
this.systemTray.setImage(this.getClass().getResource("resources/printer_ok.png"));
|
|
|
|
|
|
- MenuItem startServerMenu = new MenuItem("Arrancar servidor", new ActionListener() {
|
|
|
|
- public void actionPerformed(ActionEvent e) {
|
|
|
|
- startServerActionListener(e);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- MenuItem stopServerMenu = new MenuItem("Parar servidor", new ActionListener() {
|
|
|
|
- public void actionPerformed(ActionEvent e) {
|
|
|
|
- stopServerActionListener(e);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+// MenuItem startServerMenu = new MenuItem("Arrancar servidor", new ActionListener() {
|
|
|
|
+// public void actionPerformed(ActionEvent e) {
|
|
|
|
+// startServerActionListener(e);
|
|
|
|
+// }
|
|
|
|
+// });
|
|
|
|
+//
|
|
|
|
+// MenuItem stopServerMenu = new MenuItem("Parar servidor", new ActionListener() {
|
|
|
|
+// public void actionPerformed(ActionEvent e) {
|
|
|
|
+// stopServerActionListener(e);
|
|
|
|
+// }
|
|
|
|
+// });
|
|
|
|
|
|
MenuItem quitMenu = new MenuItem("Salir", new ActionListener() {
|
|
MenuItem quitMenu = new MenuItem("Salir", new ActionListener() {
|
|
public void actionPerformed(ActionEvent e) {
|
|
public void actionPerformed(ActionEvent e) {
|
|
@@ -43,8 +43,8 @@ public class Tray {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
- this.systemTray.getMenu().add(startServerMenu);
|
|
|
|
- this.systemTray.getMenu().add(stopServerMenu);
|
|
|
|
|
|
+// this.systemTray.getMenu().add(startServerMenu);
|
|
|
|
+// this.systemTray.getMenu().add(stopServerMenu);
|
|
this.systemTray.getMenu().add(quitMenu);
|
|
this.systemTray.getMenu().add(quitMenu);
|
|
}
|
|
}
|
|
|
|
|