Mike's Developer Notes
Friday, May 24, 2013
How to Display a JavaScript-like Alert in Java
Just put the following in your Java code:
javax.swing.JOptionPane.showMessageDialog(null, "Your message here");
Note
:
Similar to JavaScript, your code will pause executing until you close the message dialog. So be careful when deploying your code for the client.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment