public class ConfirmBox2
extends java.lang.Object
Constructor and Description |
---|
ConfirmBox2() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Opens a popup box with a question and Yes and No buttons.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
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
java.lang.Exception