chenwei
asked on
How to popup a message?
In my Java-Program I want to pop up a message dialog or message box such as:
...
...
if(error)
pop-up error message;
...
...
Is there any easy way to do that?
...
...
if(error)
pop-up error message;
...
...
Is there any easy way to do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
import javax.swing.* or javax.swing.JOptionPane for that. The parameters are: parent-frame, message, title, type-of-message.
JOptionPane.showMessageDia
and so on....