Chapter 15 Snippets

p. 534

Step 7:

public DemoJOptionBean(JPanel inPanel)
{
JOptionPane.showMessageDialog(
inPanel, doctor
"This is a modal dialog box",
"Sample Information Dialog",
JOptionPane.INFORMATION_MESSAGE);
}