Ejemplo n.º 1
0
  public void show(NotificationWindow notification) {
    SwingUI.checkEventDispatchThread();

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