This page checks each of the pop-up boxes. The relevant boxes are:
| Java Swing Method | Explanation |
|---|---|
| String showInputDialog(Object contents) | This method returns a String which should be placed in a String variable. The Object is usually a String, which contain the prompt. |
| int showConfirmDialog(Component parent, Object contents) | The parent is typically null. The Object is usually a String, which contains the prompt. |
| void showMessageDialog(Component parent, Object contents, String title,
int WINDOW_TYPE) JOptionPane.ERROR_MESSAGE JOptionPane.INFORMATION_MESSAGE JOptionPane.PLAIN_MESSAGE JOptionPane.QUESTION_MESSAGE JOptionPane.WARNING_MESSAGE |
The parent is typically null. The Object is usually a String, which contains the prompt. The title is the String that appears at the top of the box. The WINDOW_TYPE is a constant associated with one of the 5 categories appearing at the left. |
The BOXES are as follows:
| Input | ![]() |
|---|---|
| Confirm | ![]() |
| Info | ![]() |
| Plain | ![]() |
| Error | ![]() |
| Warning | ![]() |
| Question | ![]() |