1: 2: import javax.swing.*; 3: 4: /** 5: A simple demonstration of using a window class. To see 6: both windows you will probably have to move the top window. 7: */ 8: public class FirstWindowDemo 9: { 10: public static void main(String[] args) 11: { 12: FirstWindow window1 = new FirstWindow( ); 13: window1.setVisible(true); 14: 15: FirstWindow window2 = new FirstWindow( ); 16: window2.setVisible(true); 17: } 18: }