View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

How about a class for simple output?

I have created a class to make it easy for you to write programs that display information, warnings, and errors to the user.

Just download SimpleOutput.java and
SimpleOutput.class and put them in the bookClasses directory.



To display an information message using a pop-up window do:

SimpleOutput.showInformation("The sky is blue");

Uploaded Image: showInfo.jpg


To display a warning message using a pop-up window do:

SimpleOutput.showWarning("Watch Out!");

Uploaded Image: showWarn.jpg


To display an error message using a pop-up window do:

SimpleOutput.showError("That isn't a number!");

Uploaded Image: showError.jpg


Link to this Page