MessageDialog presents a dialog with an image representing the type of
message (Error, Question, etc.) alongside some message text. It's simply a
convenience widget; you could construct the equivalent of MessageDialog from
Dialog
without too much effort, but MessageDialog saves typing.
The easiest way to do a modal message dialog is to use
run()
.
getMessageDialog
public static MessageDialog getMessageDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Dialog
setMarkup
public void setMarkup(String markup)
Sets the text of the message dialog to be markup, which is
marked up with the Pango text markup language.
markup
- The markup string.
setSecondaryMarkup
public void setSecondaryMarkup(String markup)
Sets the secondary text of the message dialog to be
markup,
which is marked up with the Pango text markup language.
Note that setting a secondary text makes the primary text become bold,
unless you have provided explicit markup.
setSecondaryText
public void setSecondaryText(String text)
Sets the secondary text of the message dialog to be
text.
Note that setting a secondary text makes the primary text become bold,
unless you have provided explicit markup.