# | Question |
1 | JOptionPane Which of the following statements is true? (Choose all that apply) A. JOptionPane is in the java.awt package. |
2 | JOptionPane.showMessageDialog() Which of the following statements is true about the following sample code? (Choose all that apply) JOptionPane.showMessageDialog( null, "Are you happy?", "Smile", JOptionPane.QUESTION_MESSAGE ); A. A non-modal dialog box will appear with the words
"Are you happy?" in middle of the box. |
3 | JOptionPane.showInputDialog() Assuming that JOptionPane is not an object, which of the following statements are true about the following sample code? (Choose all that apply) strMsg = JOptionPane.showInputDialog(null, "Enter you address", "Client Info", JOptionPane.INFORMATION_MESSAGE); A. This code will not compile because a JOptionPane object has not
been created. |
4 | A modal dialog box will suspend
program execution until the user completes the dialog box. Components in
Frames are non-modal allowing the user to choose which components they
want to access. Given this correct information, which of the following
statements is true concerning the terms modal & non-modal? (Choose all that apply) A. Java has no modal components. |