summaryrefslogtreecommitdiffstats
path: root/docs/teaching/exercises/figures/gui/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'docs/teaching/exercises/figures/gui/Main.java')
-rw-r--r--docs/teaching/exercises/figures/gui/Main.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/teaching/exercises/figures/gui/Main.java b/docs/teaching/exercises/figures/gui/Main.java
new file mode 100644
index 000000000..c2d41c3b0
--- /dev/null
+++ b/docs/teaching/exercises/figures/gui/Main.java
@@ -0,0 +1,31 @@
+/* *******************************************************************
+ * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * PARC initial implementation
+ * ******************************************************************/
+
+
+package figures.gui;
+
+import javax.swing.*;
+import support.Log;
+
+public class Main {
+ static FigurePanel panel;
+
+ public static void main(String[] args) {
+ JFrame figureFrame = new JFrame("Figure Editor");
+ panel = new FigurePanel();
+ figureFrame.setContentPane(panel);
+ figureFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ figureFrame.pack();
+ figureFrame.setVisible(true);
+ }
+
+}