How to open warning/information/error dialog in Swing?
I need standard error dialog with "Ok" button and "red cross" image.
I.e. analog of org.eclipse.jface.dialogs.MessageDialog.openError()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See How to Make Dialogs.
You can use:
And you can also change the symbol to an error message or an warning. E.g see JOptionPane Features.