messagebox () .. how to achieve? ? ? ? ? ?

Category: Java SE
 
forgetmenot11
2012-12-19 07:00:11

Sponsored Links
1. How to determine the existence of a database table? ? ? , Passing the database name parameter.
2. How to delete records when the pop-up like messagebox () is yes no,, how to achieve

JOptionPane.showConfirmDialog (this, "" ;);
JOptionPane.showMessageDialog (this, "hello.");

Sponsored Links

daisy830314
2012-12-19 07:09:31
see. javax.swing.JOptionPane

JOptionPane.showConfirmConfirmDialog (Component parentWindow, Object message, String dialogTitle, int optionType); returns int
parentWindow want the dialog box's parent window
message not only can be String, and can be your own writing (J) Panel, (J) TextArea what,
dialotTitle is the title of the dialog,
int optionType be JOptionPane.YES_NO_OPTION or YES_NO_CANCEL_OPTION, OK_CANCEL_OPTION,
Description option is "OK / Cancel" type or "Yes / No / Cancel" ...
return JOptionPane.YES_OPTION, NO_OPTION, OK_OPTION, CANCEL_OPTION, CLOSED_OPTION,
corresponding to the respective user to select the last one is the user presses the upper right x
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.