Lecture 26
10
Running the program
•as an application 
•> java JOIPanel
•public static void main( String[] args )
•{
•   Terminal t     = new Terminal();
•   Frame frame    = new Frame();
•   JOIPanel panel = new JOIPanel();
•   panel.init();
•   frame.add(panel);
•   frame.setSize(400,120);
•   frame.show();
•   t.readLine("return to close window ");
•   System.exit(0);
•}