summaryrefslogtreecommitdiffstats
path: root/src/redbook/etc/Util.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-09-15 11:53:20 +0200
committerMichael Bien <[email protected]>2009-09-15 11:53:20 +0200
commit85bd6a6eca6691a7b215e36e09800d410d4a695e (patch)
tree7ba2d2e74b559bf9d7d1b5f74e826c07f9c1634e /src/redbook/etc/Util.java
parent293fda5dca0f22d93c9d3019ca12724c67de5c9d (diff)
Initial import of JOGL 2 redbook sample projects
-project builds stand alone, all dependencies including doc are downloaded automatically -a full build will create a slideshow applet in dist/ -project can be opened with NetBeans -original credits go to Kiet Le, ported to JOGL 2 by Claudio E. Goes
Diffstat (limited to 'src/redbook/etc/Util.java')
-rw-r--r--src/redbook/etc/Util.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/redbook/etc/Util.java b/src/redbook/etc/Util.java
new file mode 100644
index 0000000..77e3e7f
--- /dev/null
+++ b/src/redbook/etc/Util.java
@@ -0,0 +1,32 @@
+package etc;
+
+import java.util.Scanner;
+import java.util.TreeSet;
+
+/**
+ *
+ * @author mbien
+ */
+public class Util {
+
+
+ public static void main(String[] args) {
+ Scanner scanner = new Scanner(Util.class.getResourceAsStream("redbook.txt"));
+
+ TreeSet<String> set = new TreeSet<String>();
+ while(scanner.hasNext())
+ set.add(scanner.next());
+
+// for (String item : set) {
+// System.out.println("<applet width='${JNLP.APPLET.WIDTH}' height='${JNLP.APPLET.HEIGHT}'>");
+// System.out.println(" <param name='jnlp_href' value='${JNLP.FILE}'/>");
+// System.out.println(" <param name='demo' value='"+item+"'/>");
+// System.out.println("</applet>");
+// }
+ for (String item : set) {
+ System.out.println("<option value='"+item+"' selected>"+item);
+ }
+
+
+ }
+}