org.jtools.swing
Class MessageBox

java.lang.Object
  extended byorg.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)

Field Summary
static int ICON_ERROR
           
static int ICON_INFORMATION
           
static int ICON_PLAIN
           
static int ICON_QUESTION
           
static int ICON_WARNING
           
 
Constructor Summary
MessageBox()
           
 
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
 

Field Detail

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
Constructor Detail

MessageBox

public MessageBox()
Method Detail

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 Title
message - String Message
icon - 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 Title
message - String Message
icon - 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 Title
message - String Message
icon - int Type of icon shown
Returns:
int Result of close option clicked