Home Segments Top Top Previous Next

679: Mainline

The following is a simple program that creates a small, titled window and nothing more—the program does not even provide a means to terminate itself:

import javax.swing.*; 
public class Demonstrate { 
 public static void main (String argv []) { 
  JFrame frame = new JFrame("Movie Application"); 
  frame.setSize(350, 150); 
  frame.show(); 
 } 
}