org.jtools.swing
Class MessageBox
java.lang.Object
org.jtools.swing.MessageBox
- public abstract class MessageBox
- extends java.lang.Object
Title: MessageBox Class
Description: Utility to show different kind of messageboxes.
- Version:
$Id: MessageBox.java,v 1.4 2002/08/07 16:51:22 stfndln Exp $
- Author:
- Stefaan Delanghe (stfndln@yahoo.com)
Method Summary |
static int |
askQuestionYesNo(java.lang.String title,
java.lang.String message,
int icon)
display's a messagebox with the close options yes and no |
static int |
askQuestionYesNoCancel(java.lang.String title,
java.lang.String message,
int icon)
display's a messagebox with the close options yes, no and cancel |
static void |
displayMessage(java.lang.String title,
java.lang.String message,
int icon)
display's a simple messagebox with a specified icon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ICON_ERROR
public static final int ICON_ERROR
- See Also:
- Constant Field Values
ICON_INFORMATION
public static final int ICON_INFORMATION
- See Also:
- Constant Field Values
ICON_WARNING
public static final int ICON_WARNING
- See Also:
- Constant Field Values
ICON_QUESTION
public static final int ICON_QUESTION
- See Also:
- Constant Field Values
ICON_PLAIN
public static final int ICON_PLAIN
- See Also:
- Constant Field Values
MessageBox
public MessageBox()
displayMessage
public static void displayMessage(java.lang.String title,
java.lang.String message,
int icon)
- display's a simple messagebox with a specified icon.
- Parameters:
title
- String Titlemessage
- String Messageicon
- int Type of icon shown
askQuestionYesNo
public static int askQuestionYesNo(java.lang.String title,
java.lang.String message,
int icon)
- display's a messagebox with the close options yes and no
- Parameters:
title
- String Titlemessage
- String Messageicon
- int Type of icon shown
- Returns:
- int Result of close option clicked
askQuestionYesNoCancel
public static int askQuestionYesNoCancel(java.lang.String title,
java.lang.String message,
int icon)
- display's a messagebox with the close options yes, no and cancel
- Parameters:
title
- String Titlemessage
- String Messageicon
- int Type of icon shown
- Returns:
- int Result of close option clicked