Ame UI Dewberries
Tiny enhancements for development with Java Swing
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:
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);
JFrame frame = getFrame(); // obtaining reference on some container INotificationWindow notificationWindow = new SystemNotificationWindow( "Some test\nnotification string", frame ); notificationWindow.showNotification(NotificationType.INFO);
JFrame frame = getFrame(); // obtaining reference on some container INotificationWindow notificationWindow = new SystemNotificationExtendedInfoWindow( "Some test\nnotification string", "Some more text", frame ); notificationWindow.showNotification(NotificationType.INFO);