confirmbox2
Class ConfirmBox2

java.lang.Object
  extended by confirmbox2.ConfirmBox2

public class ConfirmBox2
extends java.lang.Object


Constructor Summary
ConfirmBox2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Opens a popup box with a question and Yes and No buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfirmBox2

public ConfirmBox2()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Opens a popup box with a question and Yes and No buttons. Prints the choice (ie. Yes or No) ConfirmBox2 is designed as a platform-independent way for scripts to open a popup window to answer a question.

Example: java -jar ConfirmBox2.jar "Do you wish to continue?"

pops up a window with the message "Do you wish to continue?". If the user clicks the Yes button, the program prints the line

Yes

Parameters:
[message - message to be printed in the box]
[title - title for popup box]
Throws:
java.lang.Exception