Class SimpleOutput

java.lang.Object
  extended by SimpleOutput

public class SimpleOutput
extends java.lang.Object

Class to make it easy to do output to the user using JOptionPane
Copyright Georgia Institute of Technology 2004

Author:
Barb Ericson ericson@cc.gatech.edu 14 May 2009: Edited by Dorn to ensure all JOptionPane calls to show are threadsafe.

Constructor Summary
SimpleOutput()
           
 
Method Summary
static java.lang.String addNewLines(java.lang.String message)
          Method to add new line character if the message is too long
static void showError(java.lang.String message)
          Method to show an error to a user
static void showInformation(java.lang.String message)
          Method to show information to the user
static void showWarning(java.lang.String message)
          Method to show a warning to a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleOutput

public SimpleOutput()
Method Detail

showWarning

public static void showWarning(java.lang.String message)
Method to show a warning to a user

Parameters:
message - the message to display

showError

public static void showError(java.lang.String message)
Method to show an error to a user

Parameters:
message - the message to display

showInformation

public static void showInformation(java.lang.String message)
Method to show information to the user

Parameters:
message - the message to display

addNewLines

public static java.lang.String addNewLines(java.lang.String message)
Method to add new line character if the message is too long

Parameters:
message - the input message
Returns:
the message with new lines added if needed