All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.MessageDialog
java.lang.Object
|
+----com.bulletproof.gui.Component
|
+----com.bulletproof.gui.Container
|
+----com.bulletproof.gui.Dialog
|
+----com.bulletproof.gui.MessageDialog
- public class MessageDialog
- extends Dialog
- implements ActionListener
Class MessageDialog represents a message dialog window.
-
MessageDialog(Frame, String)
-
-
MessageDialog(Frame, String, String, String[])
-
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
-
-
display(int, int)
-
-
getButtonCount()
- Get the button count for the dialog.
-
getButtonText(int)
- Get the text for the selected button.
-
getMessage()
- Get the message for the dialog.
-
getPressedButton()
- Get the number of the button that was pressed.
-
removeActionListener(ActionListener)
-
-
setButtonCount(int)
- Set the button count for the dialog.
-
setButtonText(int, String)
- Set the text for the selected button.
-
setMessage(String)
- Set the message for the dialog.
MessageDialog
public MessageDialog(Frame parent,
String title)
MessageDialog
public MessageDialog(Frame parent,
String title,
String message,
String buttons[])
display
public void display(int xpos,
int ypos)
- Overrides:
- display in class Dialog
setMessage
public void setMessage(String text)
- Set the message for the dialog.
- Parameters:
- message - the message for the dialog.
getMessage
public String getMessage()
- Get the message for the dialog.
- Returns:
- the message for the dialog.
setButtonCount
public void setButtonCount(int count)
- Set the button count for the dialog.
- Parameters:
- count - the button count for the dialog.
getButtonCount
public int getButtonCount()
- Get the button count for the dialog.
- Returns:
- the button count for the dialog.
setButtonText
public void setButtonText(int button,
String text)
- Set the text for the selected button.
- Parameters:
- button - the button to set the text.
- text - the text for the selected button.
getButtonText
public String getButtonText(int button)
- Get the text for the selected button.
- Parameters:
- button - the button to set the text.
- Returns:
- the text for the selected button.
getPressedButton
public int getPressedButton()
- Get the number of the button that was pressed. Returns -1 if dialog was closed.
- Returns:
- the number of the button that was pressed.
actionPerformed
public void actionPerformed(ActionEvent e)
- Overrides:
- actionPerformed in class Dialog
addActionListener
public void addActionListener(ActionListener al)
- Overrides:
- addActionListener in class Dialog
removeActionListener
public void removeActionListener(ActionListener al)
- Overrides:
- removeActionListener in class Dialog
All Packages Class Hierarchy This Package Previous Next Index