previous | start | next

The view: 1

    1   
    2   public class RectangleComponentViewer
    3   {  
    4      private static final int FRAME_WIDTH = 300;
    5      private static final int FRAME_HEIGHT = 400;
    6   
    7      public static void main(String[] args)
    8      {        
    9         final RectangleComponent component = new RectangleComponent();
   10   
   ...        ...
   31   
   32         JFrame frame = new JFrame();
   33         frame.add(component);
   34   
   35         frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
   36         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   37         frame.setVisible(true);
   38      }
   39   } 


previous | start | next