org.gnu.gtk
public class MessageDialog extends Dialog
The easiest way to do a modal message dialog is to use {@link #run()}.
Constructor Summary | |
---|---|
MessageDialog(Window parent, DialogFlags flags, MessageType type, ButtonsType buttons, String message, boolean hasMarkup)
Construct a new MessageDialog.
| |
MessageDialog(Handle handle)
Construct a MessageDialog using a handle to a native resource. |
Method Summary | |
---|---|
static MessageDialog | getMessageDialog(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | setMarkup(String markup)
Sets the text of the message dialog to be markup, which is
marked up with the Pango text markup language.
|
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.
|
void | setSecondaryText(String text)
Sets the secondary text of the message dialog to be text.
|
Parameters: parent The parent Window of this MessageDialog. flags Provides initialization information for the Dialog. type The type of message to display. buttons What type of buttons should be on this dialog. message The message to display. hasMarkup Does the message String contain markup?
See Also: MessageType
Parameters: markup The markup string.
Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.
Since: 2.6
Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.
Since: 2.6