UI Notifications

This module is a library of notification windows. You can take a look into examples of usage in Ame Mail Checker source code. Here some examples of basic usage:

  • Slide Notification
  • This code will create and show such simple notification window. See net.sf.amemailchecker.gui.notification.mail package for more complex examples.

                ISlideNotificationWindow notificationWindow
                    = new SimpleNotificationWindow("Some test notification string");
                notificationWindow.showNotification(AnimatingType.SLIDE_BOTTOM, 400, 400, 2);            

  • System Simple Notification

  •             JFrame frame = getFrame(); // obtaining reference on some container
                INotificationWindow notificationWindow = new SystemNotificationWindow(
                    "Some test\nnotification string",
                    frame
                );
                notificationWindow.showNotification(NotificationType.INFO);
                

  • System Extended Notification

  •             JFrame frame = getFrame(); // obtaining reference on some container
                INotificationWindow notificationWindow = new SystemNotificationExtendedInfoWindow(
                    "Some test\nnotification string",
                    "Some more text",
                    frame
                );
                notificationWindow.showNotification(NotificationType.INFO);
                

    Error Notification Window
    Success Notification Window
    Progress Notification Window