Work on charts ...

This commit is contained in:
7u83 2016-12-26 18:57:48 +01:00
parent 61bb6a6020
commit 84d5a034e5
15 changed files with 1222 additions and 37 deletions

22
master-application.jnlp Normal file
View File

@ -0,0 +1,22 @@
<jnlp spec="1.0+" codebase="${jnlp.codebase}" href="launch.jnlp">
<information>
<title>${APPLICATION.TITLE}</title>
<vendor>${APPLICATION.VENDOR}</vendor>
<homepage href="${APPLICATION.HOMEPAGE}"/>
<description>${APPLICATION.DESC}</description>
<description kind="short">${APPLICATION.DESC.SHORT}</description>
<!--${JNLP.ICONS}-->
<!--${JNLP.OFFLINE.ALLOWED}-->
</information>
<!--${JNLP.UPDATE}-->
<!--${JNLP.SECURITY}-->
<resources>
<!--${JNLP.RESOURCES.RUNTIME}-->
<!--${JNLP.RESOURCES.MAIN.JAR}-->
<!--${JNLP.RESOURCES.JARS}-->
<!--${JNLP.RESOURCES.EXTENSIONS}-->
</resources>
<application-desc main-class="${jnlp.main.class}">
<!--${JNLP.APPLICATION.ARGS}-->
</application-desc>
</jnlp>

View File

@ -20,6 +20,7 @@ is divided into following sections:
-->
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="SeSim-impl">
<import file="jnlp-impl.xml"/>
<fail message="Please build using Ant 1.8.0 or higher.">
<condition>
<not>
@ -54,7 +55,43 @@ is divided into following sections:
<property file="nbproject/project.properties"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
<property name="platform.java" value="${java.home}/bin/java"/>
<j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/>
<j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/>
<j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/>
<j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/>
<condition property="platform.javac" value="${platform.home}/bin/javac">
<equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/>
</condition>
<property name="platform.javac" value="${platform.javac.tmp}"/>
<j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/>
<condition property="platform.java" value="${platform.home}/bin/java">
<equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/>
</condition>
<property name="platform.java" value="${platform.java.tmp}"/>
<j2seproject1: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="platform.invalid" value="true">
<or>
<contains string="${platform.javac}" substring="$${platforms."/>
<contains string="${platform.java}" substring="$${platforms."/>
<contains string="${platform.javadoc}" substring="$${platforms."/>
</or>
</condition>
<fail unless="platform.home">Must set platform.home</fail>
<fail unless="platform.bootcp">Must set platform.bootcp</fail>
<fail unless="platform.java">Must set platform.java</fail>
<fail unless="platform.javac">Must set platform.javac</fail>
<fail if="platform.invalid">
The J2SE Platform is not correctly set up.
Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files.
Either open the project in the IDE and setup the Platform with the same name or add it manually.
For example like this:
ant -Duser.properties.file=&lt;path_to_property_file&gt; jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
or ant -Dplatforms.${platform.active}.home=&lt;path_to_JDK_home&gt; jar (where no properties file is used)
</fail>
<available file="${manifest.file}" property="manifest.available"/>
<condition property="splashscreen.available">
<and>
@ -183,20 +220,6 @@ is divided into following sections:
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
<isset property="profile.available"/>
</condition>
<condition else="false" property="jdkBug6558476">
<and>
<matches pattern="1\.[56]" string="${java.specification.version}"/>
<not>
<os family="unix"/>
</not>
</and>
</condition>
<condition else="false" property="javac.fork">
<or>
<istrue value="${jdkBug6558476}"/>
<istrue value="${javac.external.vm}"/>
</or>
</condition>
<property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/>
<property name="copylibs.rebase" value="true"/>
@ -266,7 +289,7 @@ is divided into following sections:
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<mkdir dir="@{apgeneratedsrcdir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
@ -306,7 +329,7 @@ is divided into following sections:
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
@ -387,7 +410,7 @@ is divided into following sections:
<element name="customize" optional="true"/>
<sequential>
<property name="junit.forkmode" value="perTest"/>
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
@ -410,7 +433,7 @@ is divided into following sections:
<element name="customize" optional="true"/>
<sequential>
<property name="junit.forkmode" value="perTest"/>
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
<filename name="@{testincludes}"/>
@ -449,7 +472,7 @@ is divided into following sections:
</fileset>
</union>
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="SeSim" testname="TestNG tests" workingDir="${work.dir}">
<testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="SeSim" testname="TestNG tests" workingDir="${work.dir}">
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
<propertyset>
<propertyref prefix="test-sys-prop."/>
@ -529,7 +552,7 @@ is divided into following sections:
<element name="customize" optional="true"/>
<sequential>
<property name="junit.forkmode" value="perTest"/>
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
@ -554,7 +577,7 @@ is divided into following sections:
<element name="customize" optional="true"/>
<sequential>
<property name="junit.forkmode" value="perTest"/>
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
<filename name="@{testincludes}"/>
@ -734,6 +757,9 @@ is divided into following sections:
<classpath>
<path path="@{classpath}"/>
</classpath>
<bootclasspath>
<path path="${platform.bootcp}"/>
</bootclasspath>
</nbjpdastart>
</sequential>
</macrodef>
@ -749,7 +775,9 @@ is divided into following sections:
</macrodef>
</target>
<target name="-init-debug-args">
<property name="version-output" value="java version &quot;${ant.java.version}"/>
<exec executable="${platform.java}" outputproperty="version-output">
<arg value="-version"/>
</exec>
<condition property="have-jdk-older-than-1.4">
<or>
<contains string="${version-output}" substring="java version &quot;1.0"/>
@ -774,7 +802,7 @@ is divided into following sections:
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" jvm="${platform.java}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
@ -801,7 +829,7 @@ is divided into following sections:
<attribute default="jvm" name="jvm"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" jvm="${platform.java}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
@ -999,7 +1027,7 @@ is divided into following sections:
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
<echo level="info">To run this application from the command line without Ant, try:</echo>
<property location="${dist.jar}" name="dist.jar.resolved"/>
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
<echo level="info">${platform.java} -jar "${dist.jar.resolved}"</echo>
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
@ -1024,12 +1052,12 @@ is divided into following sections:
</target>
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
<target name="-post-jar">
<target depends="jnlp" name="-post-jar">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
<target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
<target depends="init,compile,-pre-jar,-do-jar,-post-jar,jnlp" description="Build JAR." name="jar"/>
<!--
=================
EXECUTION SECTION
@ -1208,10 +1236,13 @@ is divided into following sections:
</not>
</and>
</condition>
<exec executable="${platform.java}" failonerror="false" outputproperty="platform.version.output">
<arg value="-version"/>
</exec>
<condition else="" property="bug5101868workaround" value="*.java">
<matches pattern="1\.[56](\..*)?" string="${java.version}"/>
<matches multiline="true" pattern="1\.[56](\..*)?" string="${platform.version.output}"/>
</condition>
<javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}"/>
</classpath>

View File

@ -0,0 +1,4 @@
$label=Web Start
$target.debug=jws-debug
$target.run=jws-run
compile.on.save.unsupported.javawebstart=true

View File

@ -1 +0,0 @@
main.class=Gui.MainWin

View File

@ -1,8 +1,8 @@
build.xml.data.CRC32=9b192057
build.xml.data.CRC32=1799545a
build.xml.script.CRC32=cbcf3329
build.xml.stylesheet.CRC32=8064a381@1.79.1.48
# 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=9b192057
nbproject/build-impl.xml.script.CRC32=d5d526a8
nbproject/build-impl.xml.data.CRC32=1799545a
nbproject/build-impl.xml.script.CRC32=71cc6074
nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48

923
nbproject/jnlp-impl.xml Normal file
View File

@ -0,0 +1,923 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2013 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<project name="jnlp-impl" default="default" basedir=".." xmlns:jnlp="http://www.netbeans.org/ns/j2se-project/jnlp" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3">
<property name="jnlp.file.name.default" value="launch.jnlp"/>
<property name="jnlp.dest.dir" location="dist"/>
<!-- helper file to create list of arguments, etc. -->
<property name="helper.file" location="helper.txt"/>
<target name="default">
<echo message="Default target is not set, you must specify which target you want to run."/>
</target>
<target name="-check-operating-system">
<condition property="running.on.mac">
<os family="mac"/>
</condition>
<condition property="running.on.unix">
<os family="unix"/>
</condition>
<condition property="running.on.windows">
<os family="windows"/>
</condition>
<echo message="running.on.mac = ${running.on.mac}" level="verbose"/>
<echo message="running.on.unix = ${running.on.unix}" level="verbose"/>
<echo message="running.on.windows = ${running.on.windows}" level="verbose"/>
</target>
<target name="-substitute-platform-home" unless="platform.home">
<property name="platform.home" value="${java.home}"/>
</target>
<target name="-init-platform" depends="-substitute-platform-home">
<condition property="java.exe.found">
<or>
<available file="${platform.home}${file.separator}bin${file.separator}java"/>
<available file="${platform.home}${file.separator}bin${file.separator}java.exe"/>
</or>
</condition>
<fail message="Error: java executable not found in current platform." unless="java.exe.found"/>
<local name="version-output"/>
<exec executable="${platform.home}${file.separator}bin${file.separator}java" outputproperty="version-output">
<arg value="-version"/>
</exec>
<echo message="java executable version-output:${line.separator}${version-output}" level="verbose"/>
<condition property="have-jdk-7u4-mac">
<and>
<contains string="${version-output}" substring="java version &quot;1.7.0_04"/>
<os family="mac"/>
</and>
</condition>
<fail message="Error:${line.separator}JDK 7u4 Mac does not support WebStart technology.${line.separator}Please upgrade to JDK 7u6 or later." if="have-jdk-7u4-mac"/>
</target>
<!-- Check availability of WebStart executable -->
<target name="-check-webstart-in-platform-home-jre" if="platform.home">
<condition property="do.set.webstart.in.platform.home.jre">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${platform.home}${file.separator}jre${file.separator}bin${file.separator}javaws.exe"/>
<available file="${platform.home}${file.separator}jre${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-platform-home-jre" depends="-check-webstart-in-platform-home-jre" if="do.set.webstart.in.platform.home.jre">
<property name="active.webstart.executable" value="${platform.home}${file.separator}jre${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-platform-home" if="platform.home">
<condition property="do.set.webstart.in.platform.home">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${platform.home}${file.separator}bin${file.separator}javaws.exe"/>
<available file="${platform.home}${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-platform-home" depends="-set-webstart-in-platform-home-jre,-check-webstart-in-platform-home" if="do.set.webstart.in.platform.home">
<property name="active.webstart.executable" value="${platform.home}${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-platform-home-220918workaround" if="platform.home">
<condition property="do.set.webstart.in.platform.home.220918workaround">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${platform.home}${file.separator}..${file.separator}bin${file.separator}javaws.exe"/>
<available file="${platform.home}${file.separator}..${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-platform-home-220918workaround" depends="-set-webstart-in-platform-home,-check-webstart-in-platform-home-220918workaround" if="do.set.webstart.in.platform.home.220918workaround">
<property name="active.webstart.executable" value="${platform.home}${file.separator}..${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-jre" unless="active.webstart.executable">
<condition property="do.set.webstart.in.jre">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${java.home}${file.separator}bin${file.separator}javaws.exe"/>
<available file="${java.home}${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-jre" depends="-set-webstart-in-platform-home-220918workaround,-check-webstart-in-jre" if="do.set.webstart.in.jre">
<property name="active.webstart.executable" value="${java.home}${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-probjdk" unless="active.webstart.executable">
<condition property="do.set.webstart.in.probjdk">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${java.home}${file.separator}..${file.separator}bin${file.separator}javaws.exe"/>
<available file="${java.home}${file.separator}..${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-probjdk" depends="-set-webstart-in-jre,-check-webstart-in-probjdk" if="do.set.webstart.in.probjdk">
<property name="active.webstart.executable" value="${java.home}${file.separator}..${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-envjdk" unless="active.webstart.executable">
<property environment="env"/>
<condition property="do.set.webstart.in.envjdk">
<and>
<not><isset property="active.webstart.executable"/></not>
<or>
<available file="${env.JAVA_HOME}${file.separator}bin${file.separator}javaws.exe"/>
<available file="${env.JAVA_HOME}${file.separator}bin${file.separator}javaws"/>
</or>
</and>
</condition>
</target>
<target name="-set-webstart-in-envjdk" depends="-set-webstart-in-probjdk,-check-webstart-in-envjdk" if="do.set.webstart.in.envjdk">
<property name="active.webstart.executable" value="${env.JAVA_HOME}${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-check-webstart-in-usr-bin" unless="active.webstart.executable">
<condition property="do.set.webstart.in.usr.bin">
<and>
<not><isset property="active.webstart.executable"/></not>
<available file="${file.separator}usr${file.separator}bin${file.separator}javaws"/>
</and>
</condition>
</target>
<target name="-set-webstart-in-usr-bin" depends="-set-webstart-in-envjdk,-check-webstart-in-usr-bin" if="do.set.webstart.in.usr.bin">
<property name="active.webstart.executable" value="${file.separator}usr${file.separator}bin${file.separator}javaws"/>
</target>
<target name="-pre-check-webstart-in-unix" depends="-check-operating-system,-set-webstart-in-usr-bin" unless="active.webstart.executable">
<condition property="running.on.unix-active.webstart.executable">
<and>
<not><isset property="active.webstart.executable"/></not>
<isset property="running.on.unix"/>
</and>
</condition>
</target>
<target name="-check-webstart-in-unix" depends="-pre-check-webstart-in-unix" if="running.on.unix-active.webstart.executable">
<local name="exec.which.javaws.result"/>
<exec executable="which" failifexecutionfails="false" failonerror="false" resultproperty="exec.which.javaws.result" outputproperty="exec.which.javaws.output">
<arg value="javaws"/>
</exec>
<condition property="do.set.webstart.in.unix">
<and>
<not><isset property="active.webstart.executable"/></not>
<isset property="exec.which.javaws.result"/>
<equals arg1="${exec.which.javaws.result}" arg2="0"/>
<isset property="exec.which.javaws.output"/>
<not><equals arg1="${exec.which.javaws.output}" arg2=""/></not>
</and>
</condition>
<echo message="do.set.webstart.in.unix = ${do.set.webstart.in.unix}" level="verbose"/>
</target>
<target name="-set-webstart-in-unix" depends="-set-webstart-in-envjdk,-check-webstart-in-unix" if="do.set.webstart.in.unix">
<property name="active.webstart.executable" value="${exec.which.javaws.output}"/>
</target>
<target name="-pre-check-webstart" depends="-set-webstart-in-unix">
<echo message="active.webstart.executable = ${active.webstart.executable}" level="verbose"/>
</target>
<target name="-check-webstart" depends="-pre-check-webstart">
<condition property="webstart-available">
<and>
<or>
<isset property="do.set.webstart.in.platform.home.jre"/>
<isset property="do.set.webstart.in.platform.home"/>
<isset property="do.set.webstart.in.platform.home.220918workaround"/>
<isset property="do.set.webstart.in.jre"/>
<isset property="do.set.webstart.in.probjdk"/>
<isset property="do.set.webstart.in.envjdk"/>
<isset property="do.set.webstart.in.usr.bin"/>
<isset property="do.set.webstart.in.unix"/>
</or>
<isset property="active.webstart.executable"/>
</and>
</condition>
<fail message="Error:${line.separator}WebStart executable could not be found." unless="webstart-available"/>
<echo message="webstart-available = ${webstart-available}" level="verbose"/>
</target>
<!-- Main target -->
<target name="jnlp" depends="-init-filename,-test-jnlp-enabled,-do-jar-jnlp" if="is.jnlp.enabled">
<makeurl property="jnlp.local.codebase.url" file="${basedir}/dist" validate="false"/>
<antcall target="generate-jnlp"/>
<antcall target="generate-html-preview"/>
<antcall target="-warn-insufficient-signing"/>
</target>
<!-- JNLP archiving -->
<target name="-init-macrodef-extend-manifest">
<macrodef name="extend-manifest" uri="http://www.netbeans.org/ns/j2se-project/jnlp">
<element name="customize"/>
<sequential>
<manifest file="${tmp.manifest.file}" mode="update">
<customize/>
</manifest>
</sequential>
</macrodef>
</target>
<target name="-test-jnlp-type" depends="-test-jnlp-enabled" if="is.jnlp.enabled">
<condition property="is.applet">
<equals arg1="${jnlp.descriptor}" arg2="applet" trim="true"/>
</condition>
<condition property="is.application">
<equals arg1="${jnlp.descriptor}" arg2="application" trim="true"/>
</condition>
<condition property="is.component">
<equals arg1="${jnlp.descriptor}" arg2="component" trim="true"/>
</condition>
<condition property="is.applet+mkdist.available">
<and>
<isset property="libs.CopyLibs.classpath"/>
<istrue value="${is.applet}"/>
</and>
</condition>
<condition property="is.application+mkdist.available">
<and>
<isset property="libs.CopyLibs.classpath"/>
<istrue value="${is.application}"/>
</and>
</condition>
<condition property="is.component+mkdist.available">
<and>
<isset property="libs.CopyLibs.classpath"/>
<istrue value="${is.component}"/>
</and>
</condition>
</target>
<target name="-create-tmp-manifest" unless="manifest.file">
<property name="tmp.manifest.file" value="${build.dir}/manifest.mf"/>
<delete file="${tmp.manifest.file}" failonerror="false"/>
<touch file="${tmp.manifest.file}"/>
</target>
<target name="-copy-tmp-manifest" if="manifest.file">
<property name="tmp.manifest.file" value="${build.dir}/manifest.mf"/>
<copy file="${manifest.file}" tofile="${build.dir}/manifest.mf"/>
</target>
<target name="-set-mixed-code-properties" depends="-check-signing-possible" if="jnlp.signed.true+signjars.task.available">
<property name="jnlp.mixed.code" value=""/>
<condition property="mixed.code.trusted.only">
<equals arg1="trusted_only" arg2="${jnlp.mixed.code}"/>
</condition>
<condition property="mixed.code.trusted.library">
<equals arg1="trusted_library" arg2="${jnlp.mixed.code}"/>
</condition>
</target>
<target name="-add-trusted-only-attribute" depends="-set-mixed-code-properties,-init-macrodef-extend-manifest" if="mixed.code.trusted.only">
<jnlp:extend-manifest>
<customize>
<attribute name="Trusted-Only" value="true"/>
</customize>
</jnlp:extend-manifest>
</target>
<target name="-add-trusted-library-attribute" depends="-set-mixed-code-properties,-init-macrodef-extend-manifest" if="mixed.code.trusted.library">
<jnlp:extend-manifest>
<customize>
<attribute name="Trusted-Library" value="true"/>
</customize>
</jnlp:extend-manifest>
</target>
<target name="-check-manifest-codebase">
<condition property="manifest.codebase.copy" value="${jnlp.dest.dir}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="local"/>
<or>
<not><isset property="manifest.custom.codebase"/></not>
<equals arg1="${manifest.custom.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.codebase.copy" value="${jnlp.codebase.user}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="user"/>
<isset property="jnlp.codebase.user"/>
<not><equals arg1="${jnlp.codebase.type}" arg2=""/></not>
<or>
<not><isset property="manifest.custom.codebase"/></not>
<equals arg1="${manifest.custom.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.codebase.web">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="web"/>
<or>
<not><isset property="manifest.custom.codebase"/></not>
<equals arg1="${manifest.custom.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.codebase.other">
<and>
<not><isset property="manifest.codebase.copy"/></not>
<not><isset property="manifest.codebase.web"/></not>
<or>
<not><isset property="manifest.custom.codebase"/></not>
<equals arg1="${manifest.custom.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.codebase.override">
<and>
<isset property="manifest.custom.codebase"/>
<not><equals arg1="${manifest.custom.codebase}" arg2=""/></not>
</and>
</condition>
<condition property="manifest.codebase.override.warning">
<and>
<isset property="manifest.codebase.override"/>
<equals arg1="${manifest.custom.codebase}" arg2="*"/>
</and>
</condition>
<echo message="manifest.codebase.copy = ${manifest.codebase.copy}" level="verbose"/>
<echo message="manifest.codebase.web = ${manifest.codebase.web}" level="verbose"/>
<echo message="manifest.codebase.other = ${manifest.codebase.other}" level="verbose"/>
<echo message="manifest.codebase.override = ${manifest.codebase.override}" level="verbose"/>
</target>
<target name="-extend-manifest-codebase-copy" depends="-check-manifest-codebase" if="manifest.codebase.copy">
<property name="manifest.codebase.attribute" value="${manifest.codebase.copy}"/>
</target>
<target name="-extend-manifest-codebase-web" depends="-check-manifest-codebase" if="manifest.codebase.web">
<property name="manifest.codebase.attribute" value="*"/>
<echo message="Warning: Setting Codebase manifest attribute to '*' due to current JNLP Codebase setting. Set manifest.custom.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-codebase-other" depends="-check-manifest-codebase" if="manifest.codebase.other">
<property name="manifest.codebase.attribute" value="*"/>
<echo message="Warning: Setting Codebase manifest attribute to '*' due to current JNLP Codebase. Set manifest.custom.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-codebase-override-warning" depends="-check-manifest-codebase" if="manifest.codebase.override.warning">
<echo message="Warning: Codebase manifest attribute should be used to restrict JAR repurposing. Preferably set manifest.custom.codebase to more specific value than the non-secure '*'" level="warning"/>
</target>
<target name="-extend-manifest-codebase-override" depends="-check-manifest-codebase,-extend-manifest-codebase-override-warning" if="manifest.codebase.override">
<property name="manifest.codebase.attribute" value="${manifest.custom.codebase}"/>
</target>
<target name="-check-manifest-application-library-allowable-codebase">
<condition property="manifest.application.library.allowable.codebase.copy" value="${jnlp.dest.dir}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="local"/>
<or>
<not><isset property="manifest.custom.application.library.allowable.codebase"/></not>
<equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.application.library.allowable.codebase.copy" value="${jnlp.codebase.user}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="user"/>
<isset property="jnlp.codebase.user"/>
<not><equals arg1="${jnlp.codebase.type}" arg2=""/></not>
<or>
<not><isset property="manifest.custom.application.library.allowable.codebase"/></not>
<equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.application.library.allowable.codebase.web">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="web"/>
<or>
<not><isset property="manifest.custom.application.library.allowable.codebase"/></not>
<equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.application.library.allowable.codebase.other">
<and>
<not><isset property="manifest.application.library.allowable.codebase.copy"/></not>
<not><isset property="manifest.application.library.allowable.codebase.web"/></not>
<or>
<not><isset property="manifest.custom.application.library.allowable.codebase"/></not>
<equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.application.library.allowable.codebase.override">
<and>
<isset property="manifest.custom.application.library.allowable.codebase"/>
<not><equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2=""/></not>
</and>
</condition>
<condition property="manifest.application.library.allowable.codebase.override.warning">
<and>
<isset property="manifest.application.library.allowable.codebase.override"/>
<equals arg1="${manifest.custom.application.library.allowable.codebase}" arg2="*"/>
</and>
</condition>
</target>
<target name="-extend-manifest-application-library-allowable-codebase-copy" depends="-check-manifest-application-library-allowable-codebase" if="manifest.application.library.allowable.codebase.copy">
<property name="manifest.application.library.allowable.codebase.attribute" value="${manifest.application.library.allowable.codebase.copy}"/>
</target>
<target name="-extend-manifest-application-library-allowable-codebase-web" depends="-check-manifest-application-library-allowable-codebase" if="manifest.application.library.allowable.codebase.web">
<property name="manifest.application.library.allowable.codebase.attribute" value="*"/>
<echo message="Warning: Setting Application-Library-Allowable-Codebase manifest attribute to '*' due to current JNLP Codebase setting. Set manifest.custom.application.library.allowable.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-application-library-allowable-codebase-other" depends="-check-manifest-application-library-allowable-codebase" if="manifest.application.library.allowable.codebase.other">
<property name="manifest.application.library.allowable.codebase.attribute" value="*"/>
<echo message="Warning: Setting Application-Library-Allowable-Codebase manifest attribute to '*' due to current JNLP Codebase setting. Set manifest.custom.application.library.allowable.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-application-library-allowable-codebase-override-warning" depends="-check-manifest-application-library-allowable-codebase" if="manifest.application.library.allowable.codebase.override.warning">
<echo message="Warning: Application-Library-Allowable-Codebase manifest attribute should be used to restrict JAR repurposing. Preferably set manifest.custom.application.library.allowable.codebase to more specific value than the non-secure '*'" level="warning"/>
</target>
<target name="-extend-manifest-application-library-allowable-codebase-override" depends="-check-manifest-application-library-allowable-codebase,-extend-manifest-application-library-allowable-codebase-override-warning" if="manifest.application.library.allowable.codebase.override">
<property name="manifest.application.library.allowable.codebase.attribute" value="${manifest.custom.application.library.allowable.codebase}"/>
</target>
<target name="-check-manifest-caller-allowable-codebase">
<condition property="manifest.caller.allowable.codebase.copy" value="${jnlp.dest.dir}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="local"/>
<or>
<not><isset property="manifest.custom.caller.allowable.codebase"/></not>
<equals arg1="${manifest.custom.caller.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.caller.allowable.codebase.copy" value="${jnlp.codebase.user}">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="user"/>
<isset property="jnlp.codebase.user"/>
<not><equals arg1="${jnlp.codebase.type}" arg2=""/></not>
<or>
<not><isset property="manifest.custom.caller.allowable.codebase"/></not>
<equals arg1="${manifest.custom.caller.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.caller.allowable.codebase.web">
<and>
<isset property="jnlp.codebase.type"/>
<equals arg1="${jnlp.codebase.type}" arg2="web"/>
<or>
<not><isset property="manifest.custom.caller.allowable.codebase"/></not>
<equals arg1="${manifest.custom.caller.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.caller.allowable.codebase.other">
<and>
<not><isset property="manifest.caller.allowable.codebase.copy"/></not>
<not><isset property="manifest.caller.allowable.codebase.web"/></not>
<or>
<not><isset property="manifest.custom.caller.allowable.codebase"/></not>
<equals arg1="${manifest.custom.caller.allowable.codebase}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.caller.allowable.codebase.override">
<and>
<isset property="manifest.custom.caller.allowable.codebase"/>
<not><equals arg1="${manifest.custom.caller.allowable.codebase}" arg2=""/></not>
</and>
</condition>
<condition property="manifest.caller.allowable.codebase.override.warning">
<and>
<isset property="manifest.caller.allowable.codebase.override"/>
<equals arg1="${manifest.custom.caller.allowable.codebase}" arg2="*"/>
</and>
</condition>
</target>
<target name="-extend-manifest-caller-allowable-codebase-copy" depends="-check-manifest-caller-allowable-codebase" if="manifest.caller.allowable.codebase.copy">
<property name="manifest.caller.allowable.codebase.attribute" value="${manifest.caller.allowable.codebase.copy}"/>
</target>
<target name="-extend-manifest-caller-allowable-codebase-web" depends="-check-manifest-caller-allowable-codebase" if="manifest.caller.allowable.codebase.web">
<property name="manifest.caller.allowable.codebase.attribute" value="*"/>
<echo message="Warning: Setting Caller-Allowable-Codebase manifest attribute to '*' due to current JNLP Codebase setting. Set manifest.custom.caller.allowable.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-caller-allowable-codebase-other" depends="-check-manifest-caller-allowable-codebase" if="manifest.caller.allowable.codebase.other">
<property name="manifest.caller.allowable.codebase.attribute" value="*"/>
<echo message="Warning: Setting Caller-Allowable-Codebase manifest attribute to '*' due to current JNLP Codebase setting. Set manifest.custom.caller.allowable.codebase property to override the non-secure value '*'." level="warning"/>
</target>
<target name="-extend-manifest-caller-allowable-codebase-override-warning" depends="-check-manifest-caller-allowable-codebase" if="manifest.caller.allowable.codebase.override.warning">
<echo message="Warning: Caller-Allowable-Codebase manifest attribute should be used to restrict JavaScript access. Preferably set manifest.custom.caller.allowable.codebase to more specific value than the non-secure '*'" level="warning"/>
</target>
<target name="-extend-manifest-caller-allowable-codebase-override" depends="-check-manifest-caller-allowable-codebase,-extend-manifest-caller-allowable-codebase-override-warning" if="manifest.caller.allowable.codebase.override">
<property name="manifest.caller.allowable.codebase.attribute" value="${manifest.custom.caller.allowable.codebase}"/>
</target>
<target name="-check-manifest-permissions">
<condition property="manifest.permissions.all">
<and>
<istrue value="${jnlp.signed}"/>
<or>
<not><isset property="manifest.custom.permissions"/></not>
<equals arg1="${manifest.custom.permissions}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.permissions.sandbox">
<and>
<not><istrue value="${jnlp.signed}"/></not>
<or>
<not><isset property="manifest.custom.permissions"/></not>
<equals arg1="${manifest.custom.permissions}" arg2=""/>
</or>
</and>
</condition>
<condition property="manifest.permissions.override">
<and>
<isset property="manifest.custom.permissions"/>
<not><equals arg1="${manifest.custom.permissions}" arg2=""/></not>
</and>
</condition>
<echo message="manifest.permissions.all = ${manifest.permissions.all}" level="verbose"/>
<echo message="manifest.permissions.sandbox = ${manifest.permissions.sandbox}" level="verbose"/>
<echo message="manifest.permissions.override = ${manifest.permissions.override}" level="verbose"/>
</target>
<target name="-extend-manifest-permissions-sandbox" depends="-check-manifest-permissions" if="manifest.permissions.sandbox">
<property name="manifest.permissions.attribute" value="sandbox"/>
</target>
<target name="-extend-manifest-permissions-all" depends="-check-manifest-permissions" if="manifest.permissions.all">
<property name="manifest.permissions.attribute" value="all-permissions"/>
</target>
<target name="-extend-manifest-permissions-override" depends="-check-manifest-permissions" if="manifest.permissions.override">
<property name="manifest.permissions.attribute" value="${manifest.custom.permissions}"/>
</target>
<target name="-extend-manifest-application-name">
<condition property="manifest.application.name.attribute" value="${manifest.custom.application.name}" else="${application.title}">
<and>
<isset property="manifest.custom.application.name"/>
<not><equals arg1="${manifest.custom.application.name}" arg2=""/></not>
</and>
</condition>
</target>
<target name="-add-manifest-security" depends="-init-macrodef-extend-manifest,
-extend-manifest-codebase-copy,-extend-manifest-codebase-web,-extend-manifest-codebase-other,-extend-manifest-codebase-override,
-extend-manifest-permissions-sandbox,-extend-manifest-permissions-all,-extend-manifest-permissions-override,
-extend-manifest-application-name, -extend-manifest-application-library-allowable-codebase-copy, -extend-manifest-application-library-allowable-codebase-web,
-extend-manifest-application-library-allowable-codebase-other, -extend-manifest-application-library-allowable-codebase-override,
-extend-manifest-caller-allowable-codebase-copy, -extend-manifest-caller-allowable-codebase-web, -extend-manifest-caller-allowable-codebase-other,
-extend-manifest-caller-allowable-codebase-override">
<jnlp:extend-manifest>
<customize>
<attribute name="Codebase" value="${manifest.codebase.attribute}"/>
<attribute name="Application-Library-Allowable-Codebase" value="${manifest.application.library.allowable.codebase.attribute}"/>
<attribute name="Caller-Allowable-Codebase" value="${manifest.caller.allowable.codebase.attribute}"/>
<attribute name="Permissions" value="${manifest.permissions.attribute}"/>
<attribute name="Application-Name" value="${manifest.application.name.attribute}"/>
</customize>
</jnlp:extend-manifest>
<echo message="Added manifest attribute Codebase: ${manifest.codebase.attribute}" level="verbose"/>
<echo message="Added manifest attribute Permissions: ${manifest.permissions.attribute}" level="verbose"/>
<echo message="Added manifest attribute Application-Name: ${manifest.application.name.attribute}" level="verbose"/>
</target>
<target name="-do-jar-applet" depends="-test-jnlp-type,-init-macrodef-copylibs" if="is.applet+mkdist.available">
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
</target>
<target name="-do-jar-jnlp-application" depends="-init-filename,-test-jnlp-type,-init-macrodef-copylibs" if="is.application+mkdist.available">
<j2seproject3:copylibs manifest="${tmp.manifest.file}">
<customize>
<attribute name="Main-Class" value="${main.class}"/>
</customize>
</j2seproject3:copylibs>
<echo>To run this application from the command line without Ant, try:</echo>
<property location="${jnlp.dest.dir}/${jnlp.file}" name="jnlp.file.resolved"/>
<echo>javaws "${jnlp.file.resolved}"</echo>
</target>
<target name="-do-jar-jnlp-component" depends="-test-jnlp-type,-init-macrodef-copylibs" if="is.component+mkdist.available">
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
</target>
<target name="-do-jar-jnlp" depends="-create-tmp-manifest,-copy-tmp-manifest,-add-trusted-only-attribute,-add-trusted-library-attribute,-add-manifest-security,-do-jar-applet,-do-jar-jnlp-application,-do-jar-jnlp-component"/>
<!-- Init jnlp filename -->
<target name="-init-filename" depends="-check-filename-prop,-set-jnlp-filename-custom,-set-jnlp-filename-default"/>
<target name="-set-jnlp-filename-custom" if="jnlp.file.name.set">
<property name="jnlp.file" value="${jnlp.file.name}"/>
</target>
<target name="-set-jnlp-filename-default" unless="jnlp.file.name.set">
<property name="jnlp.file" value="${jnlp.file.name.default}"/>
</target>
<target name="-check-filename-prop">
<condition property="jnlp.file.name.set">
<and>
<isset property="jnlp.file.name"/>
<not>
<equals arg1="jnlp.file.name" arg2="" trim="true"/>
</not>
</and>
</condition>
</target>
<!-- Test JNLP enabled-->
<target name="-test-jnlp-enabled">
<condition property="is.jnlp.enabled">
<istrue value="${jnlp.enabled}"/>
</condition>
</target>
<target name="-test-signing-security">
<condition property="is.signing.unsafe">
<and>
<istrue value="${jnlp.enabled}"/>
<or>
<not><istrue value="${jnlp.signed}"/></not>
<equals arg1="${jnlp.signing}" arg2="generated" casesensitive="false" trim="true"/>
</or>
</and>
</condition>
</target>
<!-- Generating JNLP file -->
<target name="generate-jnlp" depends="sign-jars,-test-generate-task-available,-unavailable-generate-task" if="generate.task.available">
<taskdef name="generate-jnlp" classname="org.netbeans.modules.javawebstart.anttasks.GenerateJnlpFileTask"
classpath="${libs.JWSAntTasks.classpath}"/>
<property name="jnlp.lazy.jars" value=""/>
<generate-jnlp destfile="${jnlp.dest.dir}/${jnlp.file}_" template="master-${jnlp.descriptor}.jnlp" destdir="dist" lazyJars="${jnlp.lazy.jars}"/>
<antcall target="-strip-empty-lines"/>
</target>
<target name="-strip-empty-lines">
<copy file="${jnlp.dest.dir}/${jnlp.file}_" tofile="${jnlp.dest.dir}/${jnlp.file}" overwrite="true" encoding="UTF-8">
<filterchain>
<tokenfilter>
<ignoreblank/>
</tokenfilter>
</filterchain>
</copy>
<delete file="${jnlp.dest.dir}/${jnlp.file}_" failonerror="false"/>
</target>
<target name="-test-generate-task-available">
<available property="generate.task.available" classname="org.netbeans.modules.javawebstart.anttasks.GenerateJnlpFileTask"
classpath="${libs.JWSAntTasks.classpath}"/>
</target>
<target name="-unavailable-generate-task" unless="generate.task.available">
<echo message="Task required to generate JNLP file is missing, probably the library 'JWS Ant Tasks' is missing either from shared folder or from IDE installation."/>
<fail/>
</target>
<!-- Codebase processing -->
<target name="-codebase-props-check">
<condition property="local.codebase">
<or>
<not>
<isset property="jnlp.codebase.type"/>
</not>
<equals arg1="${jnlp.codebase.type}" arg2="local" trim="true"/>
</or>
</condition>
<condition property="non.user.codebase">
<or>
<not>
<isset property="jnlp.codebase.type"/>
</not>
<equals arg1="${jnlp.codebase.type}" arg2="local" trim="true"/>
<equals arg1="${jnlp.codebase.type}" arg2="web" trim="true"/>
</or>
</condition>
<condition property="user.codebase">
<equals arg1="${jnlp.codebase.type}" arg2="user" trim="true"/>
</condition>
<condition property="no.codebase">
<equals arg1="${jnlp.codebase.type}" arg2="no.codebase" trim="true"/>
</condition>
<condition property="local.codebase+no.codebase">
<or>
<istrue value="${local.codebase}"/>
<istrue value="${no.codebase}"/>
</or>
</condition>
</target>
<target name="-init-non-user-codebase" if="non.user.codebase">
<property name="jnlp.codebase.value" value="${jnlp.codebase.url}"/>
</target>
<target name="-init-user-codebase" if="user.codebase">
<property name="jnlp.codebase.value" value="${jnlp.codebase.user}"/>
</target>
<!-- Security -->
<target name="-security-props-check">
<condition property="jnlp.signed.true">
<istrue value="${jnlp.signed}"/>
</condition>
</target>
<target name="-jnlp-init-keystore" depends="-jnlp-init-signing,-jnlp-init-keystore1,-jnlp-init-keystore2,-check-keystore-exists" if="do.init.keystore">
<echo message="${application.vendor}" file="${helper.file}"/>
<loadfile property="application.vendor.filtered" srcfile="${helper.file}">
<filterchain>
<deletecharacters chars=","/>
</filterchain>
</loadfile>
<delete file="${helper.file}"/>
<property name="jnlp.signjar.vendor" value="CN=${application.vendor.filtered}"/>
<echo message="Going to create default keystore in ${jnlp.signjar.keystore}"/>
<genkey dname="${jnlp.signjar.vendor}" alias="${jnlp.signjar.alias}" keystore="${jnlp.signjar.keystore}"
storepass="${jnlp.signjar.storepass}" keypass="${jnlp.signjar.keypass}"/>
</target>
<target name="-check-keystore-exists" depends="-security-props-check">
<available property="jnlp.signjar.keystore.exists" file="${jnlp.signjar.keystore}"/>
<condition property="do.init.keystore">
<and>
<isset property="jnlp.signed.true"/>
<not><isset property="jnlp.signjar.keystore.exists"/></not>
</and>
</condition>
</target>
<target name="-jnlp-init-signing">
<condition property="generated.key.signing">
<equals arg1="${jnlp.signing}" arg2="generated" trim="true"/>
</condition>
</target>
<target name="-jnlp-init-keystore1" if="generated.key.signing">
<local name="generated.signing.alias"/>
<condition property="generated.signing.alias" value="${jnlp.signing.alias}" else="nb-jws">
<isset property="jnlp.signing.alias"/>
</condition>
<property name="jnlp.signjar.keystore" value="${basedir}/build/${generated.signing.alias}.ks" />
<property name="jnlp.signjar.storepass" value="storepass"/>
<property name="jnlp.signjar.keypass" value="keypass"/>
<property name="jnlp.signjar.alias" value="${generated.signing.alias}"/>
</target>
<target name="-jnlp-init-keystore2" unless="generated.key.signing">
<property name="jnlp.signjar.keystore" value="${jnlp.signing.keystore}" />
<property name="jnlp.signjar.storepass" value="${jnlp.signing.storepass}"/>
<property name="jnlp.signjar.keypass" value="${jnlp.signing.keypass}"/>
<property name="jnlp.signjar.alias" value="${jnlp.signing.alias}"/>
</target>
<!-- Signing -->
<target name="-test-signjars-task-available">
<available property="signjars.task.available"
classname="org.netbeans.modules.javawebstart.anttasks.SignJarsTask"
classpath="${libs.JWSAntTasks.classpath}"/>
</target>
<target name="-check-signing-possible" depends="-security-props-check,-test-signjars-task-available,-unavailable-signjars-task">
<condition property="jnlp.signed.true+signjars.task.available">
<and>
<isset property="jnlp.signed.true"/>
<isset property="signjars.task.available"/>
</and>
</condition>
</target>
<target name="-unavailable-signjars-task" depends="-test-signjars-task-available" unless="signjars.task.available">
<echo message="Task required to sign JAR file is missing, probably the library 'JWS Ant Tasks' is missing either from shared folder or from IDE installation. JAR files will not be signed."/>
</target>
<target name="sign-jars" depends="-jnlp-init-keystore,-check-signing-possible" if="jnlp.signed.true+signjars.task.available">
<taskdef name="sign-jars" classname="org.netbeans.modules.javawebstart.anttasks.SignJarsTask"
classpath="${libs.JWSAntTasks.classpath}"/>
<sign-jars keystore="${jnlp.signjar.keystore}" storepass="${jnlp.signjar.storepass}"
keypass="${jnlp.signjar.keypass}" alias="${jnlp.signjar.alias}" mainjar="${dist.jar}" destdir="dist"
codebase="${jnlp.codebase.value}" signedjarsprop="jnlp.signed.jars"
componentsprop="jnlp.components">
<fileset dir="dist/lib">
<include name="*.jar"/>
</fileset>
</sign-jars>
</target>
<target name="-warn-insufficient-signing" depends="-test-signing-security" if="is.signing.unsafe">
<echo message="Warning: Unsigned and self-signed WebStart applications and Applets are deprecated from JDK7u21 onwards due to security reasons.${line.separator} To ensure future correct functionality please sign WebStart applications and Applets using trusted certificate."/>
</target>
<!-- Running/Debugging -->
<target name="jws-run" depends="jar,-verify-jnlp-enabled,-verify-codebase,-init-platform,-check-webstart" description="Start javaws execution">
<echo message="Executing ${jnlp.dest.dir}${file.separator}${jnlp.file} using ${active.webstart.executable}"/>
<exec executable="${active.webstart.executable}">
<arg file="${jnlp.dest.dir}${file.separator}${jnlp.file}"/>
</exec>
</target>
<target name="jws-debug" if="netbeans.home" depends="jar,-verify-jnlp-enabled,-verify-codebase,-debug-start-debugger,-debug-javaws-debuggee"
description="Debug javaws project in IDE"/>
<target name="-init-debug-args">
<property name="version-output" value="java version &quot;${ant.java.version}"/>
<condition property="have-jdk-older-than-1.4">
<or>
<contains string="${version-output}" substring="java version &quot;1.0"/>
<contains string="${version-output}" substring="java version &quot;1.1"/>
<contains string="${version-output}" substring="java version &quot;1.2"/>
<contains string="${version-output}" substring="java version &quot;1.3"/>
</or>
</condition>
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
<istrue value="${have-jdk-older-than-1.4}"/>
</condition>
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
<os family="windows"/>
</condition>
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
<isset property="debug.transport"/>
</condition>
</target>
<target name="-debug-javaws-debuggee" depends="-init-debug-args,-init-platform,-check-webstart">
<echo message="Executing ${jnlp.dest.dir}${file.separator}${jnlp.file} in debug mode using ${active.webstart.executable}"/>
<exec executable="${active.webstart.executable}">
<env key="JAVAWS_VM_ARGS" value="${debug-args-line} -Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
<arg value="-wait"/>
<arg file="${jnlp.dest.dir}${file.separator}${jnlp.file}"/>
</exec>
</target>
<target name="-verify-codebase" depends="-codebase-props-check" unless="local.codebase+no.codebase">
<fail message="Project cannot be run with non-local codebase. Open project properties dialog and set Web Start Codebase to Local Execution or No Codebase Execution."/>
</target>
<target name="-verify-jnlp-enabled" depends="-test-jnlp-enabled" unless="is.jnlp.enabled">
<fail message="Project cannot be run with selected Run Configuration when Java Web Start is disabled."/>
</target>
<!-- Generate simple HTML preview page -->
<target name="-check-html-preview">
<condition property="generate.html.preview">
<or>
<equals arg1="${jnlp.descriptor}" arg2="application"/>
<equals arg1="${jnlp.descriptor}" arg2="applet"/>
</or>
</condition>
</target>
<target name="generate-html-preview" depends="-check-html-preview" if="generate.html.preview">
<taskdef name="copy-template-page" classname="org.netbeans.modules.javawebstart.anttasks.CopyTemplatePageTask"
classpath="${libs.JWSAntTasks.classpath}"/>
<copy-template-page destfile="${jnlp.dest.dir}/launch.html" template="preview-${jnlp.descriptor}.html" destdir="${jnlp.dest.dir}"/>
</target>
</project>

View File

@ -3,4 +3,4 @@ do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=/home/tobias/.netbeans/8.1/build.properties
user.properties.file=/home/tube/.netbeans/8.1/build.properties

View File

@ -6,7 +6,9 @@
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/Trader.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/TraderRun.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/MTrader.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/build.xml</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/Order.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/Gui/ControlPanel.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/Gui/MainWin.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/RandomTrader.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/Gui/OrderBook.java</file>
@ -16,9 +18,11 @@
<file>file:/home/tube/NetBeansProjects/SeSim/nbproject/build-impl.xml</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/Exchange.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/BuyOrder.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/Traders/ManTrader.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/README.md</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/Logger.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/src/SeSim/SellOrder.java</file>
<file>file:/home/tube/NetBeansProjects/SeSim/LICENSE</file>
</group>
</open-files>
</project-private>

View File

@ -3,8 +3,10 @@ annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
ant.customtasks.libs=JWSAntTasks
application.title=SeSim
application.vendor=tube
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
@ -29,11 +31,17 @@ dist.jar=${dist.dir}/SeSim.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.jcommon-1.0.23.jar=additional/jcommon-1.0.23.jar
file.reference.jfreechart-1.5.0.jar=additional/jfreechart-1.5.0.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${libs.absolutelayout.classpath}:\
${libs.beans-binding.classpath}
${libs.beans-binding.classpath}:\
${file.reference.jfreechart-1.5.0.jar}:\
${file.reference.jcommon-1.0.23.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
@ -58,11 +66,28 @@ javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=Gui.MainWin
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
manifest.custom.application.library.allowable.codebase=
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.
manifest.custom.caller.allowable.codebase=
# Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed
manifest.custom.codebase=
# Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions)
manifest.custom.permissions=
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
platform.active=JDK_1.8_-_OpenJFX
project.license=bsd
run.classpath=\
${javac.classpath}:\

View File

@ -2,8 +2,15 @@
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
<extension file="jnlp-impl.xml" id="jws">
<dependency dependsOn="jnlp" target="-post-jar"/>
<dependency dependsOn="jnlp" target="jar"/>
</extension>
</buildExtensions>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>SeSim</name>
<explicit-platform explicit-source-supported="true"/>
<source-roots>
<root id="src.dir"/>
</source-roots>

17
preview-application.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test page for launching the application via JNLP</title>
</head>
<body>
<h3>Test page for launching the application via JNLP</h3>
<script src="http://java.com/js/deployJava.js"></script>
<script>
deployJava.createWebStartLaunchButton("${JNLP.FILE}")
</script>
<!-- Or use the following link element to launch with the application -->
<!--
<a href="${JNLP.FILE}">Launch the application</a>
-->
</body>
</html>

28
src/Gui/Chart.form Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="400" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="300" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Form>

90
src/Gui/Chart.java Normal file
View File

@ -0,0 +1,90 @@
/*
* Copyright (c) 2016, 7u83 <7u83@mail.ru>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package Gui;
import java.util.ArrayList;
import java.util.Calendar;
import org.jfree.chart.plot.PlotOrientation;
import java.util.Date;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.data.xy.DefaultHighLowDataset;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
import org.jfree.chart.plot.PlotOrientation;
import SeSim.Exchange;
/**
*
* @author 7u83 <7u83@mail.ru>
*/
public class Chart extends javax.swing.JPanel implements Exchange.QuoteReceiver {
/**
* Creates new form Chart
*/
public Chart() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
}// </editor-fold>//GEN-END:initComponents
@Override
public void UpdateQuote(Exchange.Quote q) {
System.out.print("Quote received");
System.out.println(q.price);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}

View File

@ -114,5 +114,25 @@
</Constraint>
</Constraints>
</Component>
<Container class="Gui.Chart" name="chart1">
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Center"/>
</Constraint>
</Constraints>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="273" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="151" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
</Container>
</SubComponents>
</Form>

View File

@ -41,6 +41,7 @@ public class MainWin extends javax.swing.JFrame {
jLabel2 = new javax.swing.JLabel();
orderBook1 = new Gui.OrderBook();
controlPanel2 = new Gui.ControlPanel();
chart1 = new Gui.Chart();
MainMenu = new javax.swing.JMenuBar();
FileMenu = new javax.swing.JMenu();
FileNew = new javax.swing.JMenuItem();
@ -67,6 +68,19 @@ public class MainWin extends javax.swing.JFrame {
getContentPane().add(orderBook1, java.awt.BorderLayout.PAGE_END);
getContentPane().add(controlPanel2, java.awt.BorderLayout.LINE_END);
javax.swing.GroupLayout chart1Layout = new javax.swing.GroupLayout(chart1);
chart1.setLayout(chart1Layout);
chart1Layout.setHorizontalGroup(
chart1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 273, Short.MAX_VALUE)
);
chart1Layout.setVerticalGroup(
chart1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 151, Short.MAX_VALUE)
);
getContentPane().add(chart1, java.awt.BorderLayout.CENTER);
FileMenu.setBackground(new java.awt.Color(254, 203, 1));
FileMenu.setText("File");
@ -188,6 +202,7 @@ public class MainWin extends javax.swing.JFrame {
private javax.swing.JMenuItem FileNew;
private javax.swing.JMenuItem FileRun;
private javax.swing.JMenuBar MainMenu;
private Gui.Chart chart1;
private Gui.ControlPanel controlPanel2;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;