Source code: org/bdgp/apps/dagedit/DAGEditor.java
1 package org.bdgp.apps.dagedit;
2
3 import org.bdgp.apps.dagedit.gui.*;
4 import org.bdgp.swing.*;
5 import java.awt.*;
6 import java.applet.Applet;
7 import java.net.URL;
8 import java.io.*;
9
10 public class DAGEditor extends Applet {
11
12 private static String version = null;
13
14 public static String getVersion() {
15 if (version == null) {
16 try {
17 URL url = ClassLoader.getSystemClassLoader().getResource("org/bdgp/apps/dagedit/resources/VERSION");
18 BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
19 version = reader.readLine();
20 reader.close();
21 } catch (Exception e) {
22 version = "<unable to determine>";
23 }
24 }
25 return version;
26 }
27
28 public static void main(String [] args) throws Exception {
29 DEEditorFrame go = new DEEditorFrame();
30 SwingUtil.center(go);
31 go.setVisible(true);
32 }
33 }