import javax.swing.JFrame; /** * Demo simple animation in Java, using a model-view-controller architecture. * * @author David Mutchler. * Created October 17, 2008. */ public class Main { /** * Demo simple animation in Java. * * Constructs a model, a view of the model, and a controller for the model. * Constructs and displays a frame that contains the user interface * and the view. * * @param args Command-line arguments (ignored here) */ public static void main(String[] args) { Model model = new Model(); View view = new View(model); Controller controller = new Controller(model, view); JFrame mainFrame = new AnimationFrame(controller, view); mainFrame.setVisible(true); } }