public void show(NotificationWindow notification) { SwingUI.checkEventDispatchThread(); if (layout.size() < limit) { layout.add(notification); notification.addWindowListener(new RemoveListener()); notification.setVisible(true); } }
public void showMessage(Notification notification) { notificationWindow.addNotification(notification); notificationWindow.showWindow(); }
public void hideMessage(Notification notification) { notificationWindow.removeNotification(notification); }
public BasicNotifier() { notificationWindow = new NotificationWindow(GUIMediator.getAppFrame()); notificationWindow.setLocationOffset(new Dimension(1, 1)); notificationWindow.setTitle("LimeWire"); notificationWindow.setIcon(GUIMediator.getThemeImage("limeicon.gif")); }