artofillusion.ui
Class MessageDialog

java.lang.Object
  extended by BDialog
      extended by artofillusion.ui.MessageDialog

public class MessageDialog
extends BDialog

A MessageDialog is a modal dialog containing one or more lines of text, and one or more buttons for the user to select from. Clicking any of the buttons dismisses the dialog.

This class is provided mainly for backward compatibility. In most cases, it is better to use a BStandardDialog, since that will have the correct platform-specific appearance. This class does have two advantages over BStandardDialog, however: it can display an arbitrary number of custom buttons, and it automatically breaks text into multiple lines.


Constructor Summary
MessageDialog(WindowWidget parent, java.lang.String message)
           
MessageDialog(WindowWidget parent, java.lang.String[] message)
           
MessageDialog(WindowWidget parent, java.lang.String[] message, java.lang.String[] choices)
           
MessageDialog(WindowWidget parent, java.lang.String message, java.lang.String[] choices)
           
 
Method Summary
 int getChoice()
          Get the index of the button that was pressed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDialog

public MessageDialog(WindowWidget parent,
                     java.lang.String message)

MessageDialog

public MessageDialog(WindowWidget parent,
                     java.lang.String message,
                     java.lang.String[] choices)

MessageDialog

public MessageDialog(WindowWidget parent,
                     java.lang.String[] message)

MessageDialog

public MessageDialog(WindowWidget parent,
                     java.lang.String[] message,
                     java.lang.String[] choices)
Method Detail

getChoice

public int getChoice()
Get the index of the button that was pressed.



Copyright © 1999-2011 by Peter Eastman.