001package horstmann.ch06_car;
002import javax.swing.JFrame;
003
004/**
005   A program that allows users to move a car with the mouse.
006 */
007public class CarMover
008{
009        public static void main(String[] args)
010        {
011                JFrame frame = new JFrame();
012                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
013
014                frame.add(new CarComponent());
015                frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
016                frame.setVisible(true);
017        }
018
019        private static final int FRAME_WIDTH = 400;
020        private static final int FRAME_HEIGHT = 400;
021}
022
023