ShowOptionDialog.java

 import javax.swing.*; import java.awt.event.*; import java.awt.*;

public class ShowOptionDialog extends JFrame { public ShowOptionDialog { setTitle("ShowOptionDialog"); setSize(640, 480); setLocation(200, 200); OptionPanel opt = new OptionPanel; getContentPane.add(opt);

addWindowListener(new WindowAdapter {           public void windowClosing(WindowEvent e) {                System.exit(0);            }        }); System.setErr(System.out); }

public static void main(String[] args) { ShowOptionDialog sod = new ShowOptionDialog; sod.show; } } 