The reason is that JOptionPane is simply a container that can automatically create a Click the Launch button to run the Dialog Demo using Java™ Web Start .