From 08d5f7b0a0b24c042aa5976f66bf3a1b5b754478 Mon Sep 17 00:00:00 2001 From: Richard Zahoransky Date: Mon, 7 Nov 2011 16:29:56 +0100 Subject: Localization Code. How-To will follow... --- voronoi/CompGeom.java | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 voronoi/CompGeom.java (limited to 'voronoi/CompGeom.java') diff --git a/voronoi/CompGeom.java b/voronoi/CompGeom.java new file mode 100644 index 0000000..93dcafa --- /dev/null +++ b/voronoi/CompGeom.java @@ -0,0 +1,35 @@ +package voronoi; +import java.applet.Applet; +import java.awt.Button; +import java.awt.Color; +import java.awt.Event; +import java.awt.FlowLayout; + +public class CompGeom extends Applet { + private static final long serialVersionUID = 1L; + + private Button start; + + private CompGeomTest test; + + private int w, h; + + public void init() { + start = new Button("Voronoi/Delaunay Applet..."); + w = 900; + h = 550; + setLayout(new FlowLayout(FlowLayout.CENTER)); + setBackground(Color.lightGray); + add(start); + } + + public boolean action(Event e, Object o) { + if (e.target == start) { + test = new CompGeomTest(this); + test.setSize(w, h); + test.setResizable(false); + test.setVisible(true); + } + return true; + } +} -- cgit v1.2.3-55-g7522