|
How to create a Confirm Dialog Box |
|
|
The easiest way to create a Yes/No/Cancel dialog box is to use showConfirmDialog(Component, Object)
method of JOptionPane class.
The following example uses a confirm dialog box with a text message and stores response
in the response variable:
int response;
response = JOptionPane.showConfirmDialog(null, "Should i delete all files?");
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.