You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.java 969B

12345678910111213141516171819202122232425262728293031
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Common Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/cpl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package figures.gui;
  13. import javax.swing.*;
  14. import support.Log;
  15. public class Main {
  16. static FigurePanel panel;
  17. public static void main(String[] args) {
  18. JFrame figureFrame = new JFrame("Figure Editor");
  19. panel = new FigurePanel();
  20. figureFrame.setContentPane(panel);
  21. figureFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  22. figureFrame.pack();
  23. figureFrame.setVisible(true);
  24. }
  25. }