Chapter 13 - Code Snippets p. 508 Message Dialog The code that you write calls a method of the Swing class JOptionPane. JOptionPane offers a number of features, including specifying more than one button and providing a text input area that the user can fill in. It is an easy way to show a dialog box. For debugging message purposes, you only need its simplest format, shown in this example: JOptionPane.showMessageDialog(this, "The debugging message.", "Debug Message", JOptionPane.INFORMATION_MESSAGE); } ------------------------------------------------------------------------------- p. 509 - Using the Dialog Class Step 8. ... In the blank line between curly brackets, insert the following code: Dialog1 myDialog = new Dialog1(); myDialog.show(); A variation on this technique ... as follows: Dialog1 myDialog = new Dialog1(this, "My test dialog", true); ---------------------------------------------------------------------------------- p. 528 Sample application code appears in the Ch12_Practice file. ----------------------------------------------------------------------------------