01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
package horstmann.ch04_icon2;
import javax.swing.JOptionPane;

public class IconTester
{
  public static void main(String[] args)
  {
    JOptionPane.showMessageDialog(
        null,
        "Hello, Mars!",
        "Message",
        JOptionPane.INFORMATION_MESSAGE,
        new MarsIcon(50));
    System.exit(0);
  }
}