Method Detail

getDefault

notify

Notify the user of something in a message box, possibly with feedback.

To support both GUI and non-GUI use, this method may be called
from any thread (providing you are not holding any locks), and
will block the caller's thread. In GUI mode, it will be run in the AWT
event thread automatically. If you wish to hold locks, or do not
need the result object immediately or at all, please make this call
asynchronously (e.g. from the request processor).

Parameters:

descriptor - description of the notification

Returns:

the option that caused the message box to be closed

notifyLater

Notify the user of something in a message box, possibly with feedback,
this method method may be called
from any thread. The thread will return immediately and
the dialog will be shown later, usually when AWT thread
is empty and can handle the request.

Implementation note: Since version 7.3, implementation improved to work
also before main window is opened. For example: When method is called
from ModuleInstall.restored, then modal dialog is opened and blocks main
window until dialog is closed. Typical use case is login dialog.

createDialog

Same as #createDialog(org.openide.DialogDescriptor) except that it's possible
to specify dialog's parent Frame window. When a document window is floated
and has focus then new dialog window will use it as a parent window by default.
That means non-modal dialogs will close when that document window is closed.
To avoid such situation pass WindowManager.getDefault().getMainWindow() as
dialog parent window.