Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial add

  • Loading branch information...
commit cc807e5e20b7768f981102e5edd912906604c9ec 1 parent c25c110
@staypufd authored
View
47 build.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See commented blocks below for -->
+<!-- some examples of how to customize the build. -->
+<!-- (If you delete it and reopen the project it will be recreated.) -->
+<project name="TestFX" default="default" basedir=".">
+ <description>Builds, tests, and runs the project TestFX.</description>
+ <import file="nbproject/build-impl.xml"/>
+ <!--
+
+ There exist several targets which are by default empty and which can be
+ used for execution of your tasks. These targets are usually executed
+ before and after some main targets. They are:
+
+ -pre-init: called before initialization of project properties
+ -post-init: called after initialization of project properties
+ -pre-compile: called before compilation
+ -post-compile: called after compilation
+ -post-clean: called after cleaning build products
+
+ (Targets beginning with '-' are not intended to be called on their own.)
+
+ Example of inserting an obfuscator after compilation could look like this:
+
+ <target name="-post-compile">
+ <obfuscate>
+ <fileset dir="${build.classes.dir}"/>
+ </obfuscate>
+ </target>
+
+ For list of available properties check the imported
+ nbproject/build-impl.xml file.
+
+ An example of overriding the target for project execution could look like this:
+
+ <target name="run" depends="TestFX-impl.jar">
+ <exec dir="bin" executable="launcher.exe">
+ <arg file="${dist.jar}"/>
+ </exec>
+ </target>
+
+ Notice that the overridden target depends on the jar target and not only on
+ the compile target as the regular run target does. Again, for a list of available
+ properties which you can use, check the target you are overriding in the
+ nbproject/build-impl.xml file.
+
+ -->
+</project>
View
22 dist/TestFX.html
@@ -0,0 +1,22 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>TestFX</title>
+</head>
+<body>
+<h1>TestFX</h1>
+<script src="http://dl.javafx.com/1.3/dtfx.js"></script>
+<script>
+ javafx(
+ {
+ archive: "TestFX.jar",
+ draggable: true,
+ width: 200,
+ height: 200,
+ code: "testfx.Main",
+ name: "TestFX"
+ }
+ );
+</script>
+</body>
+</html>
View
BIN  dist/TestFX.jar
Binary file not shown
View
22 dist/TestFX.jnlp
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jnlp spec="1.0+" codebase="file:/Users/samjr/TestFX/dist/" href="TestFX.jnlp">
+ <information>
+ <title>TestFX</title>
+ <vendor>samjr</vendor>
+ <homepage href=""/>
+ <description>TestFX</description>
+ <icon kind="splash" href="http://dl.javafx.com/1.3/splash.png"/>
+ <offline-allowed/>
+ </information>
+ <resources>
+ <j2se version="1.5+"/>
+ <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
+ <jar href="TestFX.jar" main="true" size="15009"/>
+ <jar href="lib/clojure-1.0.0.jar" size="1502276"/>
+ <jar href="lib/clojure-contrib-1.0.0.jar" size="2838601"/>
+ </resources>
+ <application-desc main-class="com.sun.javafx.runtime.main.Main" progress-class="com.javafx.progressbar.ProgressManager">
+ <argument>MainJavaFXScript=testfx.Main</argument>
+ </application-desc>
+ <update check="always"/>
+</jnlp>
View
22 dist/TestFX_browser.jnlp
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jnlp spec="1.0+" codebase="file:/Users/samjr/TestFX/dist/" href="TestFX_browser.jnlp">
+ <information>
+ <title>TestFX</title>
+ <vendor>samjr</vendor>
+ <homepage href=""/>
+ <description>TestFX</description>
+ <icon kind="splash" href="http://dl.javafx.com/1.3/splash.png"/>
+ <offline-allowed/>
+ </information>
+ <resources>
+ <j2se version="1.5+"/>
+ <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
+ <jar href="TestFX.jar" main="true" size="15009"/>
+ <jar href="lib/clojure-1.0.0.jar" size="1502276"/>
+ <jar href="lib/clojure-contrib-1.0.0.jar" size="2838601"/>
+ </resources>
+ <applet-desc name="TestFX" main-class="com.sun.javafx.runtime.adapter.Applet" progress-class="com.javafx.progressbar.ProgressManager" width="200" height="200">
+ <param name="MainJavaFXScript" value="testfx.Main"/>
+ </applet-desc>
+ <update check="always"/>
+</jnlp>
View
BIN  dist/lib/clojure-1.0.0.jar
Binary file not shown
View
BIN  dist/lib/clojure-contrib-1.0.0.jar
Binary file not shown
View
3  manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
View
398 nbproject/build-impl.xml
@@ -0,0 +1,398 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*** GENERATED FROM project.xml - DO NOT EDIT ***
+*** EDIT ../build.xml INSTEAD ***
+
+For the purpose of easier reading the script
+is divided into following sections:
+
+ - initialization
+ - compilation
+ - jar
+ - execution
+ - debugging
+ - javadoc
+ - junit compilation
+ - junit execution
+ - junit debugging
+ - applet
+ - cleanup
+
+ -->
+<project xmlns:javafxproject1="http://www.netbeans.org/ns/javafx-project/1" xmlns:javafxproject2="http://www.netbeans.org/ns/javafx-project/2" xmlns:javafxproject3="http://www.netbeans.org/ns/javafx-project/3" basedir=".." default="default" name="TestFX-impl">
+ <target depends="jar" description="Build whole project." name="default"/>
+ <!--
+ ======================
+ INITIALIZATION SECTION
+ ======================
+ -->
+ <target name="-pre-init">
+ <!-- Empty placeholder for easier customization.-->
+ <!-- You can override this target in the ../build.xml file.-->
+ </target>
+ <target depends="-pre-init" name="-init-private">
+ <macrodef name="property" uri="http://www.netbeans.org/ns/javafx-project/1">
+ <attribute name="name"/>
+ <attribute name="value"/>
+ <sequential>
+ <property name="@{name}" value="${@{value}}"/>
+ </sequential>
+ </macrodef>
+ <property file="nbproject/private/config.properties"/>
+ <property file="nbproject/private/configs/${config}.properties"/>
+ <property file="nbproject/private/private.properties"/>
+ </target>
+ <target depends="-pre-init,-init-private" name="-init-user">
+ <property file="${user.properties.file}"/>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user" name="-init-project">
+ <property file="nbproject/configs/${config}.properties"/>
+ <property file="nbproject/project.properties"/>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project" name="-do-init">
+ <javafxproject1:property name="platform.fxhome" value="platforms.${platform.active}.fxhome"/>
+ <javafxproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/>
+ <condition property="platform.javadoc" value="${platform.home}/bin/javadoc">
+ <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/>
+ </condition>
+ <property name="platform.javadoc" value="${platform.javadoc.tmp}"/>
+ <condition property="no.javadoc.preview">
+ <and>
+ <isset property="javadoc.preview"/>
+ <isfalse value="${javadoc.preview}"/>
+ </and>
+ </condition>
+ <property name="work.dir" value="${basedir}"/>
+ <condition property="no.deps">
+ <istrue value="${no.dependencies}"/>
+ </condition>
+ <condition else="" property="codebase.arg" value="-appCodebase ${codebase.url}">
+ <isset property="codebase.url"/>
+ </condition>
+ <property file="${user.properties.file}/../config/preferences/org/apache/tools/ant/module.properties" prefix="ant.module"/>
+ <condition else="" property="verbose.arg" value="-v">
+ <or>
+ <equals arg1="${ant.module.verbosity}" arg2="3"/>
+ <equals arg1="${ant.module.verbosity}" arg2="4"/>
+ </or>
+ </condition>
+ <condition else="" property="draggable.arg" value="-draggable">
+ <istrue value="${applet.draggable}"/>
+ </condition>
+ <condition else="" property="pack200.arg" value="-pack200">
+ <istrue value="${jnlp.packEnabled}"/>
+ </condition>
+ <condition else="" property="sign.arg" value="-sign">
+ <istrue value="${jnlp.signed}"/>
+ </condition>
+ <property name="jnlp.update.model" value="always"/>
+ <property name="javadoc.preview" value="true"/>
+ <property name="source.encoding" value="${file.encoding}"/>
+ <condition else="" property="binary.extension" value=".exe">
+ <os family="windows"/>
+ </condition>
+ <property environment="env"/>
+ <condition property="java.home.value" value="${env.JAVA_HOME}">
+ <available file="${env.JAVA_HOME}/bin/javac${binary.extension}"/>
+ </condition>
+ <condition property="java.home.value" value="${java.home}">
+ <available file="${java.home}/bin/javac${binary.extension}"/>
+ </condition>
+ <condition property="java.home.value" value="${java.home}/..">
+ <available file="${java.home}/../bin/javac${binary.extension}"/>
+ </condition>
+ <condition else="NOTHING_IMPORTANT" property="java.home.key" value="JAVA_HOME">
+ <isset property="java.home.value"/>
+ </condition>
+ <property name="javafx.profile" value="desktop"/>
+ <condition property="midp.execution.trigger">
+ <equals arg1="${javafx.profile}" arg2="mobile"/>
+ </condition>
+ <condition property="tv.execution.trigger">
+ <equals arg1="${javafx.profile}" arg2="tv"/>
+ </condition>
+ <condition property="jnlp.execution.trigger">
+ <and>
+ <equals arg1="${javafx.profile}" arg2="desktop"/>
+ <equals arg1="${execution.target}" arg2="jnlp"/>
+ </and>
+ </condition>
+ <condition property="applet.execution.trigger">
+ <and>
+ <equals arg1="${javafx.profile}" arg2="desktop"/>
+ <equals arg1="${execution.target}" arg2="applet"/>
+ <isset property="netbeans.home"/>
+ </and>
+ </condition>
+ <condition property="standard.execution.trigger">
+ <not>
+ <or>
+ <isset property="jnlp.execution.trigger"/>
+ <isset property="applet.execution.trigger"/>
+ <isset property="midp.execution.trigger"/>
+ <isset property="tv.execution.trigger"/>
+ </or>
+ </not>
+ </condition>
+ <property name="run.jvmargs" value=""/>
+ <property name="packager.options" value=""/>
+ <available file="${platform.fxhome}/emulator/mobile/bin/emulator${binary.extension}" property="emulator.available"/>
+ <available file="${platform.fxhome}/emulator/tv/bin/cvm${binary.extension}" property="tvemulator.available"/>
+ </target>
+ <target name="-post-init">
+ <!-- Empty placeholder for easier customization.-->
+ <!-- You can override this target in the ../build.xml file.-->
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
+ <fail unless="build.dir">Must set build.dir</fail>
+ <fail unless="dist.dir">Must set dist.dir</fail>
+ <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
+ <fail message="Must set application main class">
+ <condition>
+ <length length="0" string="${main.class}"/>
+ </condition>
+ </fail>
+ </target>
+ <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check" name="init"/>
+ <!--
+ ===================
+ COMPILATION SECTION
+ ===================
+ -->
+ <target depends="init" name="deps-jar" unless="no.deps"/>
+ <target name="-pre-compile">
+ <!-- Empty placeholder for easier customization.-->
+ <!-- You can override this target in the ../build.xml file.-->
+ </target>
+ <target depends="init,deps-jar,-pre-compile" name="-do-compile">
+ <exec executable="${platform.fxhome}/bin/javafxpackager${binary.extension}" failonerror="true" logerror="true">
+ <arg value="-src"/>
+ <arg value="${src.printer.dir};${src.dir}"/>
+ <arg value="-workdir"/>
+ <arg file="${build.dir}"/>
+ <arg value="-d"/>
+ <arg file="${dist.dir}"/>
+ <arg value="-appname"/>
+ <arg value="${application.title}"/>
+ <arg value="-appvendor"/>
+ <arg value="${application.vendor}"/>
+ <arg value="-appwidth"/>
+ <arg value="${applet.width}"/>
+ <arg value="-appheight"/>
+ <arg value="${applet.height}"/>
+ <arg value="-appclass"/>
+ <arg value="${main.class}"/>
+ <arg line="${codebase.arg}"/>
+ <arg value="-encoding"/>
+ <arg value="${source.encoding}"/>
+ <arg value="-p"/>
+ <arg value="${javafx.profile}"/>
+ <arg value="${verbose.arg}"/>
+ <arg value="${draggable.arg}"/>
+ <arg value="${pack200.arg}"/>
+ <arg value="${sign.arg}"/>
+ <arg value="-updatecheck"/>
+ <arg value="${jnlp.update.model}"/>
+ <arg line="${packager.options}"/>
+ <arg value="-cp"/>
+ <arg path="${javac.classpath}"/>
+ <env file="${java.home.value}" key="${java.home.key}"/>
+ </exec>
+ </target>
+ <target name="-post-compile">
+ <!-- Empty placeholder for easier customization.-->
+ <!-- You can override this target in the ../build.xml file.-->
+ </target>
+ <target depends="init,deps-jar,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
+ <!--
+ ====================
+ JAR BUILDING SECTION
+ ====================
+ -->
+ <target depends="init,compile" description="Build." name="jar"/>
+ <!--
+ =================
+ EXECUTION SECTION
+ =================
+ -->
+ <target depends="init,compile,jar" description="Run a main class." if="standard.execution.trigger" name="standard-run">
+ <property name="application.args" value=""/>
+ <java classname="${main.class}" classpath="${dist.dir}/${application.title}.jar" failonerror="true" fork="true" jvm="${platform.fxhome}/bin/javafx${binary.extension}" jvmargs="${run.jvmargs}">
+ <arg line="${application.args}"/>
+ </java>
+ </target>
+ <target depends="jar" description="Start MIDP execution" if="midp.execution.trigger" name="midp-run">
+ <fail message="Current platform does not include mobile device emulator necessary for the execution." unless="emulator.available"/>
+ <property location="${dist.dir}/${application.title}.jad" name="jad.file"/>
+ <property name="mobile.device" value="DefaultFxPhone1"/>
+ <condition else="-Xdescriptor:" property="emulator.exec.arg" value="-Xjam:install=">
+ <istrue value="${jad.install}"/>
+ </condition>
+ <exec executable="${platform.fxhome}/emulator/mobile/bin/emulator${binary.extension}" failonerror="true" logerror="true">
+ <arg value="${run.jvmargs}"/>
+ <arg value="${emulator.exec.arg}${jad.file}"/>
+ <arg value="-Xdevice:${mobile.device}"/>
+ </exec>
+ </target>
+ <target depends="jar" description="Start TV execution" if="tv.execution.trigger" name="tv-run">
+ <fail message="Current platform does not include tv emulator necessary for the execution." unless="tvemulator.available"/>
+ <property location="${dist.dir}/${application.title}.jar" name="jar.file"/>
+ <exec executable="${platform.fxhome}/bin/javafx${binary.extension}" failonerror="true" logerror="true">
+ <arg value="-profile"/>
+ <arg value="tv"/>
+ <arg value="-classpath"/>
+ <arg value="${jar.file}"/>
+ <arg line="${run.jvmargs}"/>
+ <arg value="${main.class}"/>
+ </exec>
+ </target>
+ <target depends="init,jar" if="applet.execution.trigger" name="browser-run">
+ <makeurl file="${dist.dir}/${application.title}.html" property="applet.local.url"/>
+ <condition else="${applet.local.url}" property="applet.url" value="${codebase.url}/${application.title}.html">
+ <isset property="codebase.url"/>
+ </condition>
+ <nbbrowse url="${applet.url}"/>
+ </target>
+ <target depends="jar" description="Start javaws execution" if="jnlp.execution.trigger" name="jws-run">
+ <condition else="${java.home}" property="javaws.home" value="/usr">
+ <os family="mac"/>
+ </condition>
+ <exec executable="${javaws.home}/bin/javaws" failonerror="true" logerror="true">
+ <env key="JAVAWS_VM_ARGS" value="${run.jvmargs}"/>
+ <arg file="${dist.dir}/${application.title}.jnlp"/>
+ </exec>
+ </target>
+ <target depends="init,compile,jar,standard-run,browser-run,jws-run,midp-run,tv-run" description="Run an application." name="run"/>
+ <!--
+ =================
+ DEBUGGING SECTION
+ =================
+ -->
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger" unless="midp.execution.trigger">
+ <nbjpdastart addressproperty="javafx.address" connector="com.sun.javafx.jdi.connect.FXSocketListeningConnector" name="${application.title}" transport="dt_socket">
+ <classpath>
+ <path path="${javac.classpath}"/>
+ </classpath>
+ <sourcepath>
+ <path path="${src.printer.dir};${src.dir}"/>
+ </sourcepath>
+ </nbjpdastart>
+ </target>
+ <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto" unless="midp.execution.trigger">
+ <nbjpdastart addressproperty="javafx.address" connector="com.sun.javafx.jdi.connect.FXSocketListeningConnector" name="${application.title}" stopclassname="${main.class}" transport="dt_socket">
+ <classpath>
+ <path path="${javac.classpath}"/>
+ </classpath>
+ <sourcepath>
+ <path path="${src.printer.dir};${src.dir}"/>
+ </sourcepath>
+ </nbjpdastart>
+ </target>
+ <target depends="init,compile" if="standard.execution.trigger" name="-debug-start-debuggee">
+ <property name="application.args" value=""/>
+ <java classname="${main.class}" classpath="${dist.dir}/${application.title}.jar" fork="true" jvm="${platform.fxhome}/bin/javafx${binary.extension}">
+ <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${javafx.address}"/>
+ <jvmarg line="${run.jvmargs}"/>
+ <syspropertyset>
+ <propertyref prefix="run-sys-prop."/>
+ <mapper from="run-sys-prop.*" to="*" type="glob"/>
+ </syspropertyset>
+ <arg line="${application.args}"/>
+ </java>
+ </target>
+ <target if="midp.execution.trigger" name="-debug-midp-debuggee">
+ <fail message="Current platform does not include mobile device emulator necessary for the debugging." unless="emulator.available"/>
+ <property location="${dist.dir}/${application.title}.jad" name="jad.file"/>
+ <condition else="-Xdescriptor:" property="emulator.exec.arg" value="-Xjam:install=">
+ <istrue value="${jad.install}"/>
+ </condition>
+ <script language="javascript"><![CDATA[
+ importClass(java.net.Socket);
+ socket = new Socket();
+ socket.bind(null);
+ project.setNewProperty("javafx.address", socket.getLocalPort());
+ socket.close();
+ ]]></script>
+ <parallel failonany="true">
+ <exec executable="${platform.fxhome}/emulator/mobile/bin/emulator${binary.extension}" failonerror="true" logerror="true">
+ <arg value="${run.jvmargs}"/>
+ <arg value="${emulator.exec.arg}${jad.file}"/>
+ <arg value="-Xdebug"/>
+ <arg value="-Xrunjdwp:transport=dt_socket,address=${javafx.address},server=y,suspend=y"/>
+ </exec>
+ <sequential>
+ <sleep seconds="6"/>
+ <nbjpdaconnect address="${javafx.address}" name="${application.title}" transport="dt_socket">
+ <classpath>
+ <path path="${javac.classpath}"/>
+ </classpath>
+ <sourcepath>
+ <path path="${src.dir}"/>
+ </sourcepath>
+ </nbjpdaconnect>
+ </sequential>
+ </parallel>
+ </target>
+ <target if="tv.execution.trigger" name="-debug-tv-debuggee">
+ <fail message="Current platform does not include tv emulator necessary for the debugging." unless="tvemulator.available"/>
+ <property location="${dist.dir}/${application.title}.jar" name="jar.file"/>
+ <exec executable="${platform.fxhome}/bin/javafx${binary.extension}" failonerror="true" logerror="true">
+ <arg value="-Xdebug"/>
+ <arg value="-Xrunjdwp:transport=dt_socket,address=${javafx.address},server=n"/>
+ <arg value="-profile"/>
+ <arg value="tv"/>
+ <arg value="-classpath"/>
+ <arg value="${jar.file}"/>
+ <arg line="${run.jvmargs}"/>
+ <arg value="${main.class}"/>
+ </exec>
+ </target>
+ <target if="jnlp.execution.trigger" name="-debug-javaws-debuggee">
+ <condition else="${java.home}" property="javaws.home" value="/usr">
+ <os family="mac"/>
+ </condition>
+ <exec executable="${javaws.home}/bin/javaws" failonerror="true" logerror="true">
+ <env key="JAVAWS_VM_ARGS" value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${javafx.address} ${run.jvmargs}"/>
+ <arg file="${dist.dir}/${application.title}.jnlp"/>
+ </exec>
+ </target>
+ <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee,-debug-javaws-debuggee,-debug-midp-debuggee,-debug-tv-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
+ <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee,-debug-javaws-debuggee,-debug-midp-debuggee,-debug-tv-debuggee" if="netbeans.home" name="debug-stepinto"/>
+ <!--
+ ===============
+ JAVADOC SECTION
+ ===============
+ -->
+ <target depends="jar" name="-javadoc-build">
+ <mkdir dir="${dist.javadoc.dir}"/>
+ <javadoc author="${javadoc.author}" classpath="${javac.classpath}:${build.dir}/compiled" destdir="${dist.javadoc.dir}" encoding="${source.encoding}" executable="${platform.fxhome}/bin/javafxdoc${binary.extension}" failonerror="true" private="${javadoc.private}" useexternalfile="true" version="${javadoc.version}">
+ <fileset dir="${src.printer.dir}" includes="**/*.fx"/>
+ <fileset dir="${src.dir}" includes="**/*.fx"/>
+ </javadoc>
+ <condition property="javadoc.available">
+ <and>
+ <isset property="netbeans.home"/>
+ <available file="${dist.javadoc.dir}/index.html"/>
+ </and>
+ </condition>
+ </target>
+ <target depends="init,-javadoc-build" if="javadoc.available" name="-javadoc-browse" unless="no.javadoc.preview">
+ <nbbrowse file="${dist.javadoc.dir}/index.html"/>
+ </target>
+ <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
+ <!--
+ ===============
+ CLEANUP SECTION
+ ===============
+ -->
+ <target depends="init" name="deps-clean" unless="no.deps"/>
+ <target depends="init" name="-do-clean">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}"/>
+ </target>
+ <target name="-post-clean">
+ <!-- Empty placeholder for easier customization.-->
+ <!-- You can override this target in the ../build.xml file.-->
+ </target>
+ <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
+</project>
View
3  nbproject/configs/browser.properties
@@ -0,0 +1,3 @@
+$label=Browser
+execution.target=applet
+javafx.profile=desktop
View
3  nbproject/configs/mobile.properties
@@ -0,0 +1,3 @@
+$label=Mobile
+execution.target=midp
+javafx.profile=mobile
View
3  nbproject/configs/webstart.properties
@@ -0,0 +1,3 @@
+$label=Web Start
+execution.target=jnlp
+javafx.profile=desktop
View
8 nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=d43eb8fc
+build.xml.script.CRC32=86b384dc
+build.xml.stylesheet.CRC32=37714ed0@1.11.2
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=d43eb8fc
+nbproject/build-impl.xml.script.CRC32=4c4f7ce4
+nbproject/build-impl.xml.stylesheet.CRC32=f3287c92@1.11.2
View
0  nbproject/private/config.properties
No changes.
View
4 nbproject/private/private.properties
@@ -0,0 +1,4 @@
+javac.debug=true
+javadoc.preview=true
+mobile.device=DefaultFxPhone1
+user.properties.file=/Users/samjr/.netbeans/6.9/build.properties
View
54 nbproject/project.properties
@@ -0,0 +1,54 @@
+applet.draggable=true
+applet.height=200
+applet.width=200
+application.title=TestFX
+application.vendor=samjr
+build.classes.excludes=**/*.java,**/*.form,**/*.fx
+build.classpath=\
+ ${javac.classpath}:\
+ ${src.dir}:\
+ ${build.classes.dir}:
+# This directory is removed when the project is cleaned:
+build.dir=build
+build.generated.dir=${build.dir}/generated
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+debug.classpath=\
+ ${run.classpath}
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/TestFX.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+excludes=
+includes=**
+jar.compress=true
+javac.classpath=\
+ ${libs.Clojure-1.0.0.classpath}
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.deprecation=false
+javac.source=1.5
+javac.target=1.5
+javadoc.additionalparam=
+javadoc.author=true
+javadoc.encoding=
+javadoc.private=true
+javadoc.version=false
+javafx.profile=desktop
+jnlp.codebase.type=local
+jnlp.offline-allowed=true
+jnlp.packEnabled=false
+jnlp.signed=false
+main.class=testfx.Main
+pack200.jar.compress=true
+platform.active=default_fx_platform
+run.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project
+# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
+# or test-sys-prop.name=value to set system properties for unit tests):
+run.jvmargs=
+source.encoding=UTF-8
+src.dir=src
+src.printer.dir=src/printer
View
14 nbproject/project.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.javafx.project</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/javafx-project/3">
+ <name>TestFX</name>
+ <minimum-ant-version>1.6.5</minimum-ant-version>
+ <source-roots>
+ <root id="src.printer.dir"/>
+ <root id="src.dir"/>
+ </source-roots>
+ </data>
+ </configuration>
+</project>
View
45 src/clojureGlue/TestJavaClass.java
@@ -0,0 +1,45 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package clojureGlue;
+
+import clojure.lang.RT;
+import clojure.lang.Var;
+
+/**
+ *
+ * @author samjr
+ */
+public class TestJavaClass {
+
+ private int currentCount = 0;
+
+ public TestJavaClass() {
+
+ try {
+ // Java calling code
+ RT.loadResourceScript("printer.clj");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public String putMsgToConsole(String msg)
+ {
+ Object result = null;
+ try {
+ currentCount = currentCount + 1;
+ System.out.println("CurrentCount is: " + currentCount);
+ // Java calling code
+ // Only load it up one time when the class was loaded
+ // RT.loadResourceScript("printer.clj");
+ result = RT.var("printer", "print-string").invoke("" + currentCount);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return (String) result;
+ }
+}
View
8 src/printer/printer.clj
@@ -0,0 +1,8 @@
+; printer.clj
+; Author Sam Griffith Jr. 6-26-2009
+(ns printer)
+
+(defn print-string [arg]
+ "Prints the arg to the console, then returns the arg"
+ (println arg)
+ arg)
View
63 src/testfx/Main.fx
@@ -0,0 +1,63 @@
+/*
+ * Main.fx
+ *
+ * Created on Jun 26, 2009, 11:36:24 PM
+ */
+
+package testfx;
+
+import javafx.stage.Stage;
+import javafx.scene.Scene;
+import javafx.scene.text.Text;
+import javafx.scene.text.Font;
+import clojureGlue.TestJavaClass;
+import javafx.scene.control.Button;
+import javafx.scene.control.TextBox;
+import javafx.scene.layout.VBox;
+import java.lang.Integer;
+import javafx.scene.control.Slider;
+
+/**
+ * @author Sam Griffith Jr
+ */
+var tjcResult;
+var result:Number;
+var tjc = new TestJavaClass();
+var mySlider;
+
+mySlider = Slider {
+ min: 1
+ max: 100
+ vertical: false
+ value: bind result with inverse
+ translateX: 10
+ };
+
+Stage {
+ title: "Application title"
+ width: 250
+ height: 80
+ scene: Scene {
+ content:
+ VBox { content: [
+
+ mySlider,
+ Button {
+ text: "Button"
+ action: function() {
+ tjcResult = tjc.putMsgToConsole("foobar");
+ result = java.lang.Integer.parseInt(tjcResult);
+ }
+ },
+
+ TextBox {
+ text: bind mySlider.value.toString()
+ translateX: bind result
+ translateY: 5
+ columns: 12
+ selectOnFocus: true
+ }
+ ]
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.