cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

NotifyDescriptor.Message

This class has two constructors:
  1. NotifyDescriptor.Message(Object message) -- show the information dialog with message
  2. NotifyDescriptor.Message(Object message, int messageType) -- allows you specify type of dialog:
    • information dialog -- NotifyDescriptor.INFORMATION_MESSAGE
    • warning dialog -- NotifyDescriptor.WARNING_MESSAGE
    • error dialog -- NotifyDescriptor.ERROR_MESSAGE
    • question dialog -- NotifyDescriptor.QUESTION_MESSAGE
    • plain dialog -- NotifyDescriptor.PLAIN_MESSAGE
Example of the first constructor:
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.");

Examples of the second constructor:
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.", NotifyDescriptor.INFORMATION_MESSAGE));
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.", NotifyDescriptor.WARNING_MESSAGE));
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.", NotifyDescriptor.ERROR_MESSAGE));
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.", NotifyDescriptor.QUESTION_MESSAGE));
TopManager.getDefault ().notify (new NotifyDescriptor.Message ("Eggs aren't supposed to be green.", NotifyDescriptor.PLAIN_MESSAGE));

Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems