code: public static void main(String[] s) {
  		WindowListener l = new WindowAdapter() {
  			public void windowClosing(WindowEvent e) {
  				System.exit(0);
  			}
  		};
  
  		JFrame frame = new JFrame("JCalendar Demo");
  		frame.addWindowListener(l);
  
  		JCalendarDemo demo = new JCalendarDemo();
  		demo.init();
  		frame.getContentPane().add(demo);
  		frame.pack();
  		frame.setBounds(200, 200, (int) frame.getPreferredSize().getWidth() + 20, (int) frame
  				.getPreferredSize().getHeight() + 180);
  		frame.setVisible(true);
  	}
docs: Creates a JFrame with a JCalendarDemo inside and can be used for testing.
  
  @param s
  The command line arguments