What would be the simplest way to create some sort of basic message box and refresh text on it?
Share
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.
The simplest dialog box you can create and display with the javax.swing.JOptionPane class is the message dialog box. This can be done with the static method: showMessageDialog(frame, message, title, type), where:
3.”title” is the title string to be used as the dialog box title.
JOptionPane class: INFORMATION_MESSAGE, WARNING_MESSAGE,
ERROR_MESSAGE and PLAIN_MESSAGE.
Here is an example program