diff --git a/java/labs/DEV_J140_1.pdf b/java/labs/DEV_J140_1.pdf new file mode 100644 index 0000000..9d66774 Binary files /dev/null and b/java/labs/DEV_J140_1.pdf differ diff --git a/java/labs/DEV_J140_2.pdf b/java/labs/DEV_J140_2.pdf new file mode 100644 index 0000000..ca668a9 Binary files /dev/null and b/java/labs/DEV_J140_2.pdf differ diff --git a/java/labs/DEV_J140_3.pdf b/java/labs/DEV_J140_3.pdf new file mode 100644 index 0000000..af776cf Binary files /dev/null and b/java/labs/DEV_J140_3.pdf differ diff --git a/java/labs/DEV_J140_4.pdf b/java/labs/DEV_J140_4.pdf new file mode 100644 index 0000000..ff7f983 Binary files /dev/null and b/java/labs/DEV_J140_4.pdf differ diff --git a/java/samples/fx/JavaFxPaneExample/build.xml b/java/samples/fx/JavaFxPaneExample/build.xml new file mode 100644 index 0000000..4e4983a --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/build.xml @@ -0,0 +1,53 @@ + + Builds, tests, and runs the project JavaFxPaneExample. + + + diff --git a/java/samples/fx/JavaFxPaneExample/build/built-jar.properties b/java/samples/fx/JavaFxPaneExample/build/built-jar.properties new file mode 100644 index 0000000..f86ef50 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/build/built-jar.properties @@ -0,0 +1,4 @@ +#Wed, 08 Feb 2023 21:00:59 +0300 + + +C\:\\Users\\denis.LAPTOP-4LI8UQ4O\\OneDrive\\\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b\\\u041b\u0430\u0431\u044b\u0421\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432\\\u0420\u043e\u0436\u043d\u043e\u0432\\JavaFxPaneExample= diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/AnchorPaneExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/AnchorPaneExample.class new file mode 100644 index 0000000..0915600 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/AnchorPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/FlowPaneExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/FlowPaneExample.class new file mode 100644 index 0000000..d807b76 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/FlowPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/GridPaneExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/GridPaneExample.class new file mode 100644 index 0000000..ff06a82 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/GridPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/HBoxExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/HBoxExample.class new file mode 100644 index 0000000..85000c3 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/HBoxExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$1.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$1.class new file mode 100644 index 0000000..63c4930 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$1.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$2.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$2.class new file mode 100644 index 0000000..8733444 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$2.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$3.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$3.class new file mode 100644 index 0000000..a6e1cfe Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$3.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$4.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$4.class new file mode 100644 index 0000000..1a2ad9c Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$4.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$5.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$5.class new file mode 100644 index 0000000..70b1378 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$5.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$6.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$6.class new file mode 100644 index 0000000..7c2b729 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample$6.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample.class new file mode 100644 index 0000000..18af285 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/JavaFxPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TextAreaExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TextAreaExample.class new file mode 100644 index 0000000..6e231cd Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TextAreaExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TilePaneExample.class b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TilePaneExample.class new file mode 100644 index 0000000..a7e64a9 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/build/classes/javafxpaneexample/TilePaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.html b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.html new file mode 100644 index 0000000..34761fd --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.html @@ -0,0 +1,45 @@ + + + + + + + +

Test page for JavaFxPaneExample

+ Webstart: click to launch this app as webstart


+ + +
+ diff --git a/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jar b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jar new file mode 100644 index 0000000..bf0ce3b Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jar differ diff --git a/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jnlp b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jnlp new file mode 100644 index 0000000..e88bdc4 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/dist/JavaFxPaneExample.jnlp @@ -0,0 +1,18 @@ + + + + JavaFxPaneExample + denis + null + + + + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample/dist/web-files/dtjava.js b/java/samples/fx/JavaFxPaneExample/dist/web-files/dtjava.js new file mode 100644 index 0000000..b77ecd7 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/dist/web-files/dtjava.js @@ -0,0 +1,3958 @@ +/* + * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + */ + +/** + The Java Deployment Toolkit is a utility to deploy Java content in + the browser as applets or applications using the right version of Java. + If needed it can initiate an upgrade of user's system to install required + components of Java platform. +

+ Note that some of the Deployment Toolkit methods may not be fully operational if + used before web page body is loaded (because DT native plugins could not be instantiated). + If you intend to use it before web page DOM tree is ready then dtjava.js + needs to be loaded inside the body element of the page and before use of other DT APIs. + + @module java/deployment_toolkit +*/ +var dtjava = function() { + function notNull(o) { + return (o != undefined && o != null); + } + + function isDef(fn) { + return (fn != null && typeof fn != "undefined"); + } + + //return true if any of patterns from query list is found in the given string + function containsAny(lst, str) { + for (var q = 0; q < lst.length; q++) { + if (str.indexOf(lst[q]) != -1) { + return true; + } + } + return false; + } + + /* Location of static web content - images, javascript files. */ + var jscodebase = (function () { + // + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/______________WebStart.properties b/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/______________WebStart.properties new file mode 100644 index 0000000..7a1d99d --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/______________WebStart.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=webstart diff --git a/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/____________________.properties b/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/____________________.properties new file mode 100644 index 0000000..7a7b6e4 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/nbproject/private/configs/____________________.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=embedded diff --git a/java/samples/fx/JavaFxPaneExample/nbproject/private/private.properties b/java/samples/fx/JavaFxPaneExample/nbproject/private/private.properties new file mode 100644 index 0000000..2221527 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/nbproject/private/private.properties @@ -0,0 +1,4 @@ +auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true +# \u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0437\u0430\u0434\u0430\u0447\u0438 JavaFX Ant +endorsed.javafx.ant.classpath=. +user.properties.file=C:\\Users\\denis.LAPTOP-4LI8UQ4O\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/java/samples/fx/JavaFxPaneExample/nbproject/project.properties b/java/samples/fx/JavaFxPaneExample/nbproject/project.properties new file mode 100644 index 0000000..67c4dd8 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/nbproject/project.properties @@ -0,0 +1,113 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=JavaFxPaneExample +application.vendor=denis +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +compile.on.save=true +compile.on.save.unsupported.javafx=true +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/JavaFxPaneExample.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects +jar.archive.disabled=true +jar.compress=false +javac.classpath=\ + ${javafx.classpath.extension} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +javafx.application.implementation.version=1.0 +javafx.binarycss=false +javafx.classpath.extension=\ + ${java.home}/lib/javaws.jar:\ + ${java.home}/lib/deploy.jar:\ + ${java.home}/lib/plugin.jar +javafx.deploy.allowoffline=true +# If true, application update mode is set to 'background', if false, update mode is set to 'eager' +javafx.deploy.backgroundupdate=false +javafx.deploy.embedJNLP=true +javafx.deploy.includeDT=true +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0434\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 (\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438) +javafx.disable.concurrent.runs=false +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Run-in-Browser \u0438\u043b\u0438 WebStart +javafx.enable.concurrent.external.runs=false +# This is a JavaFX project +javafx.enabled=true +javafx.fallback.class=com.javafx.main.NoJavaFXFallback +# Main class for JavaFX +javafx.main.class=javafxpaneexample.JavaFxPaneExample +javafx.preloader.class= +# This project does not use Preloader +javafx.preloader.enabled=false +javafx.preloader.jar.filename= +javafx.preloader.jar.path= +javafx.preloader.project.path= +javafx.preloader.type=none +# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs. +javafx.rebase.libs=false +javafx.run.height=600 +javafx.run.width=800 +# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects +jnlp.enabled=false +# Main class for Java launcher +main.class=com.javafx.main.Main +# \u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0447\u043d\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Codebase \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f RIA +manifest.custom.codebase=* +# \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Permissions \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${dist.jar}:\ + ${javac.classpath}:\ + ${build.classes.dir} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/java/samples/fx/JavaFxPaneExample/nbproject/project.xml b/java/samples/fx/JavaFxPaneExample/nbproject/project.xml new file mode 100644 index 0000000..9db8d2f --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + + + + JavaFxPaneExample + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/AnchorPaneExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/AnchorPaneExample.java new file mode 100644 index 0000000..67a267a --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/AnchorPaneExample.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.geometry.Insets; +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.AnchorPane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class AnchorPaneExample extends Stage{ + public void init(){ + Button btn1 = new Button("Button 1"); + Button btn2 = new Button("Button 2 Button"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + Button btn8 = new Button("Button 8 hrvydhtyndtybrtstr"); + Button btn9 = new Button("Button 9"); + + AnchorPane root = new AnchorPane(); + AnchorPane.setTopAnchor(btn1, 10.0); + AnchorPane.setLeftAnchor(btn1, 10.0); + AnchorPane.setRightAnchor(btn1, 10.0); + AnchorPane.setBottomAnchor(btn2, 10.0); + AnchorPane.setLeftAnchor(btn2, 10.0); + AnchorPane.setRightAnchor(btn2, 10.0); + root.setPadding(new Insets(10, 10, 10, 10)); + root.getChildren().addAll(btn1, btn2); + + Scene scene = new Scene(root, 300, 250); + + setTitle("Hello World!"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/FlowPaneExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/FlowPaneExample.java new file mode 100644 index 0000000..208ea3a --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/FlowPaneExample.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.FlowPane; +import javafx.scene.layout.StackPane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class FlowPaneExample extends Stage{ + + public void init(){ + Button btn1 = new Button("Button 1"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + + FlowPane root = new FlowPane(); + root.getChildren().addAll(btn1, btn2, btn3, btn4, btn5); + + Scene scene = new Scene(root, 300, 250); + + setTitle("Hello World!"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/GridPaneExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/GridPaneExample.java new file mode 100644 index 0000000..4275453 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/GridPaneExample.java @@ -0,0 +1,54 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.control.Label; +import javafx.scene.layout.GridPane; +import javafx.scene.paint.Paint; +import javafx.scene.text.Font; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class GridPaneExample extends Stage{ + public void init(){ + GridPane root = new GridPane(); + Button btn1 = new Button("Button 1"); + root.add(btn1, 0, 0); + Label label = new Label("Label label"); + label.setFont(Font.font(40)); + label.setTextFill(Paint.valueOf("red")); + root.add(label, 1, 0, 5, 1); + Button btn3 = new Button("Button 3"); + root.add(btn3, 0, 1); + Button btn4 = new Button("Button 4"); + root.add(btn4, 0, 2); + Button btn5 = new Button("Button 5"); + root.add(btn5, 2, 3); + Button btn6 = new Button("Button 6"); + root.add(btn6, 3, 4); + Button btn7 = new Button("Button 7"); + root.add(btn7, 4, 4); + Button btn8 = new Button("Button 8 hrvydhtyndtybrtstr"); + root.add(btn8, 0, 5, 3, 1); + Button btn9 = new Button("Button 9"); + root.add(btn9, 0, 6); + + root.setOnMouseClicked(e -> { + System.out.println("Click count = " + e.getClickCount()); + }); + + Scene scene = new Scene(root, 300, 250); + + setTitle("Hello World!"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/HBoxExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/HBoxExample.java new file mode 100644 index 0000000..7ce7507 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/HBoxExample.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.HBox; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class HBoxExample extends Stage{ + public void init(){ + Button btn1 = new Button("Button 1"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + + HBox root = new HBox(); + root.setAlignment(Pos.CENTER); + root.setSpacing(20); + root.setOnMouseClicked(e -> { + System.out.println("Click count = " + e.getClickCount()); + }); + root.getChildren().addAll(btn1, btn2, btn3, btn4, btn5); + + Scene scene = new Scene(root, 300, 250); + + setTitle("Hello World!"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/JavaFxPaneExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/JavaFxPaneExample.java new file mode 100644 index 0000000..256eb51 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/JavaFxPaneExample.java @@ -0,0 +1,95 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.application.Application; +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.StackPane; +import javafx.scene.layout.VBox; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class JavaFxPaneExample extends Application { + + @Override + public void start(Stage primaryStage) { + Button btn = new Button("FlowPane"); + btn.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new FlowPaneExample().init(); + } + }); + Button btn2 = new Button("HBox"); + btn2.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new HBoxExample().init(); + } + }); + + Button btn3 = new Button("TilePane"); + btn3.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new TilePaneExample().init(); + } + }); + + Button btn4 = new Button("GridPane"); + btn4.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new GridPaneExample().init(); + } + }); + + Button btn5 = new Button("AnchorPane"); + btn5.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new AnchorPaneExample().init(); + } + }); + + Button btn6 = new Button("TextAreaExample"); + btn6.setOnAction(new EventHandler() { + + @Override + public void handle(ActionEvent event) { + new TextAreaExample().init(); + } + }); + + VBox root = new VBox(); + root.getChildren().addAll(btn, btn2, btn3, btn4, btn5, btn6); + + Scene scene = new Scene(root, 300, 250); + + primaryStage.setTitle("Hello World!"); + primaryStage.setScene(scene); + primaryStage.show(); + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + launch(args); + } + +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TextAreaExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TextAreaExample.java new file mode 100644 index 0000000..139a83b --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TextAreaExample.java @@ -0,0 +1,57 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.geometry.Insets; +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.control.TextArea; +import javafx.scene.control.TextField; +import javafx.scene.input.KeyCode; +import javafx.scene.layout.*; +import javafx.scene.layout.GridPane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class TextAreaExample extends Stage{ + public void init(){ + TextField field = new TextField(); + TextArea area = new TextArea(); + Button append = new Button("Append"); + Button clear = new Button("Clear"); + append.setOnAction(e -> { + area.appendText(field.getText() + "\n"); + field.clear(); + }); + field.setOnKeyPressed(e -> { + if(e.getCode().equals(KeyCode.ENTER)){ + area.appendText(field.getText() + "\n"); + field.clear(); + } + }); + clear.setOnAction(e -> { + area.clear(); + field.clear(); + }); + GridPane root = new GridPane(); + + root.add(field, 0, 0, 100, 1); + root.add(area, 0, 2, 100, 10); + HBox hBox = new HBox(10, append, clear); + hBox.setAlignment(Pos.CENTER); + root.add(hBox, 30, 13, 100, 1); + + Scene scene = new Scene(root, 300, 250); + + setTitle("TextAreaExample"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TilePaneExample.java b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TilePaneExample.java new file mode 100644 index 0000000..81f3b71 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample/src/javafxpaneexample/TilePaneExample.java @@ -0,0 +1,46 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample; + +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.HBox; +import javafx.scene.layout.TilePane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class TilePaneExample extends Stage{ + public void init(){ + Button btn1 = new Button("Button 1"); + Button btn2 = new Button("Button 2 Button"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + Button btn8 = new Button("Button 8 hrvydhtyndtybrtstr"); + Button btn9 = new Button("Button 9"); + + TilePane root = new TilePane(); + root.setAlignment(Pos.CENTER); + root.setPrefColumns(3); + root.setPrefRows(0); + root.setOnMouseClicked(e -> { + System.out.println("Click count = " + e.getClickCount()); + }); + root.getChildren().addAll(btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9); + + Scene scene = new Scene(root, 300, 250); + + setTitle("Hello World!"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/build.xml b/java/samples/fx/JavaFxPaneExample_dist/build.xml new file mode 100644 index 0000000..683b45b --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/build.xml @@ -0,0 +1,53 @@ + + Builds, tests, and runs the project JavaFxPaneExample_dist. + + + diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/built-jar.properties b/java/samples/fx/JavaFxPaneExample_dist/build/built-jar.properties new file mode 100644 index 0000000..c3ab0ec --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 10 Feb 2023 20:13:21 +0300 + + +C\:\\Users\\denis.LAPTOP-4LI8UQ4O\\OneDrive\\\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b\\\u041b\u0430\u0431\u044b\u0421\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432\\\u0420\u043e\u0436\u043d\u043e\u0432\\JavaFxPaneExample_dist= diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/AnchorPaneExample.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/AnchorPaneExample.class new file mode 100644 index 0000000..d350a85 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/AnchorPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample$1.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample$1.class new file mode 100644 index 0000000..21c27f6 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample$1.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample.class new file mode 100644 index 0000000..9408143 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/FlowPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/GridPaneExample.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/GridPaneExample.class new file mode 100644 index 0000000..a473822 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/GridPaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/HBoxExample.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/HBoxExample.class new file mode 100644 index 0000000..bbd62a1 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/HBoxExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist$1.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist$1.class new file mode 100644 index 0000000..397410f Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist$1.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist.class new file mode 100644 index 0000000..ca7bf11 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/JavaFxPaneExample_dist.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/TilePaneExample.class b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/TilePaneExample.class new file mode 100644 index 0000000..4d89162 Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/build/classes/javafxpaneexample_dist/TilePaneExample.class differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.html b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.html new file mode 100644 index 0000000..7b565d3 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.html @@ -0,0 +1,45 @@ + + + + + + + +

Test page for JavaFxPaneExample_dist

+ Webstart: click to launch this app as webstart


+ + +
+ diff --git a/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jar b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jar new file mode 100644 index 0000000..da3f56b Binary files /dev/null and b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jar differ diff --git a/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jnlp b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jnlp new file mode 100644 index 0000000..b1b38bb --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/dist/JavaFxPaneExample_dist.jnlp @@ -0,0 +1,18 @@ + + + + JavaFxPaneExample_dist + denis + null + + + + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample_dist/dist/web-files/dtjava.js b/java/samples/fx/JavaFxPaneExample_dist/dist/web-files/dtjava.js new file mode 100644 index 0000000..b77ecd7 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/dist/web-files/dtjava.js @@ -0,0 +1,3958 @@ +/* + * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + */ + +/** + The Java Deployment Toolkit is a utility to deploy Java content in + the browser as applets or applications using the right version of Java. + If needed it can initiate an upgrade of user's system to install required + components of Java platform. +

+ Note that some of the Deployment Toolkit methods may not be fully operational if + used before web page body is loaded (because DT native plugins could not be instantiated). + If you intend to use it before web page DOM tree is ready then dtjava.js + needs to be loaded inside the body element of the page and before use of other DT APIs. + + @module java/deployment_toolkit +*/ +var dtjava = function() { + function notNull(o) { + return (o != undefined && o != null); + } + + function isDef(fn) { + return (fn != null && typeof fn != "undefined"); + } + + //return true if any of patterns from query list is found in the given string + function containsAny(lst, str) { + for (var q = 0; q < lst.length; q++) { + if (str.indexOf(lst[q]) != -1) { + return true; + } + } + return false; + } + + /* Location of static web content - images, javascript files. */ + var jscodebase = (function () { + // + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/______________WebStart.properties b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/______________WebStart.properties new file mode 100644 index 0000000..7a1d99d --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/______________WebStart.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=webstart diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/____________________.properties b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/____________________.properties new file mode 100644 index 0000000..7a7b6e4 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/configs/____________________.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=embedded diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.properties b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.properties new file mode 100644 index 0000000..2221527 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.properties @@ -0,0 +1,4 @@ +auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true +# \u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0437\u0430\u0434\u0430\u0447\u0438 JavaFX Ant +endorsed.javafx.ant.classpath=. +user.properties.file=C:\\Users\\denis.LAPTOP-4LI8UQ4O\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.xml b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.xml new file mode 100644 index 0000000..db03bb0 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.properties b/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.properties new file mode 100644 index 0000000..15c68eb --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.properties @@ -0,0 +1,113 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=JavaFxPaneExample_dist +application.vendor=denis +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +compile.on.save=true +compile.on.save.unsupported.javafx=true +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/JavaFxPaneExample_dist.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects +jar.archive.disabled=true +jar.compress=false +javac.classpath=\ + ${javafx.classpath.extension} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +javafx.application.implementation.version=1.0 +javafx.binarycss=false +javafx.classpath.extension=\ + ${java.home}/lib/javaws.jar:\ + ${java.home}/lib/deploy.jar:\ + ${java.home}/lib/plugin.jar +javafx.deploy.allowoffline=true +# If true, application update mode is set to 'background', if false, update mode is set to 'eager' +javafx.deploy.backgroundupdate=false +javafx.deploy.embedJNLP=true +javafx.deploy.includeDT=true +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0434\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 (\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438) +javafx.disable.concurrent.runs=false +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Run-in-Browser \u0438\u043b\u0438 WebStart +javafx.enable.concurrent.external.runs=false +# This is a JavaFX project +javafx.enabled=true +javafx.fallback.class=com.javafx.main.NoJavaFXFallback +# Main class for JavaFX +javafx.main.class=javafxpaneexample_dist.JavaFxPaneExample_dist +javafx.preloader.class= +# This project does not use Preloader +javafx.preloader.enabled=false +javafx.preloader.jar.filename= +javafx.preloader.jar.path= +javafx.preloader.project.path= +javafx.preloader.type=none +# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs. +javafx.rebase.libs=false +javafx.run.height=600 +javafx.run.width=800 +# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects +jnlp.enabled=false +# Main class for Java launcher +main.class=com.javafx.main.Main +# \u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0447\u043d\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Codebase \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f RIA +manifest.custom.codebase=* +# \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Permissions \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${dist.jar}:\ + ${javac.classpath}:\ + ${build.classes.dir} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.xml b/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.xml new file mode 100644 index 0000000..8d7f52e --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + + + + JavaFxPaneExample_dist + + + + + + + + + diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/AnchorPaneExample.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/AnchorPaneExample.java new file mode 100644 index 0000000..0baf01c --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/AnchorPaneExample.java @@ -0,0 +1,53 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.AnchorPane; +import javafx.scene.layout.GridPane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class AnchorPaneExample extends Stage{ + + public void init(){ + Button btn = new Button("Button 1 Button"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + + AnchorPane root = new AnchorPane(); + AnchorPane.setTopAnchor(btn, 10.0); + AnchorPane.setLeftAnchor(btn, 50.0); + AnchorPane.setRightAnchor(btn, 50.0); + + AnchorPane.setTopAnchor(btn3, 50.0); + AnchorPane.setLeftAnchor(btn3, 10.0); + AnchorPane.setBottomAnchor(btn3, 50.0); + + AnchorPane.setTopAnchor(btn4, 50.0); + AnchorPane.setRightAnchor(btn4, 10.0); + AnchorPane.setBottomAnchor(btn4, 50.0); + + AnchorPane.setBottomAnchor(btn2, 10.0); + AnchorPane.setLeftAnchor(btn2, 50.0); + AnchorPane.setRightAnchor(btn2, 50.0); + root.getChildren().addAll(btn, btn2, btn3, btn4); + + Scene scene = new Scene(root, 300, 250); + + setTitle("AnchorPane"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/FlowPaneExample.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/FlowPaneExample.java new file mode 100644 index 0000000..de50638 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/FlowPaneExample.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.geometry.Orientation; +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.FlowPane; +import javafx.scene.layout.StackPane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class FlowPaneExample extends Stage{ + + public void init(){ + Button btn = new Button("Button 1"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + + FlowPane root = new FlowPane(); + root.setOrientation(Orientation.VERTICAL); + root.setAlignment(Pos.CENTER); + root.getChildren().addAll(btn, btn2, btn3, btn4, btn5, btn6, btn7); + + Scene scene = new Scene(root, 300, 250); + + setTitle("FlowPane"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/GridPaneExample.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/GridPaneExample.java new file mode 100644 index 0000000..1bea172 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/GridPaneExample.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.GridPane; +import javafx.scene.layout.HBox; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class GridPaneExample extends Stage{ + + public void init(){ + Button btn = new Button("Button 1 Button"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + + GridPane root = new GridPane(); + + root.add(btn, 0, 0, 2, 1); + root.setHgap(10); + root.setVgap(10); + root.add(btn2, 1, 1); + root.add(btn3, 2, 1); + root.add(btn4, 2, 3); + root.add(btn5, 1, 4); + root.add(btn6, 1, 5); + root.add(btn7, 2, 5); + + Scene scene = new Scene(root, 300, 250); + + setTitle("GridPane"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/HBoxExample.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/HBoxExample.java new file mode 100644 index 0000000..ae50c8b --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/HBoxExample.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.FlowPane; +import javafx.scene.layout.HBox; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class HBoxExample { + private Stage stage; + + public void init(){ + stage = new Stage(); + Button btn = new Button("Button 1"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6"); + Button btn7 = new Button("Button 7"); + + HBox root = new HBox(); + root.getChildren().addAll(btn, btn2, btn3, btn4, btn5, btn6, btn7); + + Scene scene = new Scene(root, 300, 250); + + stage.setTitle("HBox"); + stage.setScene(scene); + stage.show(); + } +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/JavaFxPaneExample_dist.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/JavaFxPaneExample_dist.java new file mode 100644 index 0000000..91f96b9 --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/JavaFxPaneExample_dist.java @@ -0,0 +1,70 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.application.Application; +import javafx.event.ActionEvent; +import javafx.event.EventHandler; +import javafx.geometry.Pos; +import javafx.scene.Node; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.StackPane; +import javafx.scene.layout.VBox; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class JavaFxPaneExample_dist extends Application { + + @Override + public void start(Stage primaryStage) { + Button btn = new Button("FlowPane"); + btn.setOnAction(e -> { + new FlowPaneExample().init(); + }); + + Button btn2 = new Button("HBoxExample"); + btn2.setOnAction(e -> { + new HBoxExample().init(); + }); + + Button btn3 = new Button("GridPaneExample"); + btn3.setOnAction(e -> { + new GridPaneExample().init(); + }); + + Button btn4 = new Button("AnchorPaneExample"); + btn4.setOnAction(e -> { + new AnchorPaneExample().init(); + }); + + Button btn5 = new Button("TilePaneExample"); + btn5.setOnAction(e -> { + new TilePaneExample().init(); + }); + + VBox root = new VBox(); + root.setAlignment(Pos.CENTER); + root.getChildren().addAll(btn, btn2, btn3, btn4, btn5); + + Scene scene = new Scene(root, 300, 250); + + primaryStage.setTitle("Hello World!"); + primaryStage.setScene(scene); + primaryStage.show(); + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + launch(args); + } + +} diff --git a/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/TilePaneExample.java b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/TilePaneExample.java new file mode 100644 index 0000000..b2f43bc --- /dev/null +++ b/java/samples/fx/JavaFxPaneExample_dist/src/javafxpaneexample_dist/TilePaneExample.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javafxpaneexample_dist; + +import javafx.geometry.Orientation; +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.layout.TilePane; +import javafx.stage.Stage; + +/** + * + * @author denis + */ +public class TilePaneExample extends Stage{ + + public void init(){ + Button btn = new Button("Button 1 Button"); + Button btn2 = new Button("Button 2"); + Button btn3 = new Button("Button 3"); + Button btn4 = new Button("Button 4"); + Button btn5 = new Button("Button 5"); + Button btn6 = new Button("Button 6 Button Button"); + Button btn7 = new Button("Button 7"); + Button btn8 = new Button("Button 8"); + + TilePane root = new TilePane(); + root.setOrientation(Orientation.HORIZONTAL); + root.setAlignment(Pos.CENTER); + root.getChildren().addAll(btn, btn2, btn3, btn4, btn5, btn6, btn7, btn8); + + Scene scene = new Scene(root, 300, 250); + + setTitle("TilePane"); + setScene(scene); + show(); + } +} diff --git a/java/samples/fx/PropetiesFx/build.xml b/java/samples/fx/PropetiesFx/build.xml new file mode 100644 index 0000000..ac87d3d --- /dev/null +++ b/java/samples/fx/PropetiesFx/build.xml @@ -0,0 +1,53 @@ + + Builds, tests, and runs the project PropetiesFx. + + + diff --git a/java/samples/fx/PropetiesFx/build/built-jar.properties b/java/samples/fx/PropetiesFx/build/built-jar.properties new file mode 100644 index 0000000..aa39afd --- /dev/null +++ b/java/samples/fx/PropetiesFx/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 10 Feb 2023 21:22:19 +0300 + + +C\:\\Users\\denis.LAPTOP-4LI8UQ4O\\OneDrive\\\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b\\NetBeansProjects\\PropetiesFx= diff --git a/java/samples/fx/PropetiesFx/build/classes/propetiesfx/PropetiesFx.class b/java/samples/fx/PropetiesFx/build/classes/propetiesfx/PropetiesFx.class new file mode 100644 index 0000000..e9b72b0 Binary files /dev/null and b/java/samples/fx/PropetiesFx/build/classes/propetiesfx/PropetiesFx.class differ diff --git a/java/samples/fx/PropetiesFx/dist/PropetiesFx.html b/java/samples/fx/PropetiesFx/dist/PropetiesFx.html new file mode 100644 index 0000000..f7b94bf --- /dev/null +++ b/java/samples/fx/PropetiesFx/dist/PropetiesFx.html @@ -0,0 +1,45 @@ + + + + + + + +

Test page for PropetiesFx

+ Webstart: click to launch this app as webstart


+ + +
+ diff --git a/java/samples/fx/PropetiesFx/dist/PropetiesFx.jar b/java/samples/fx/PropetiesFx/dist/PropetiesFx.jar new file mode 100644 index 0000000..6ab10e2 Binary files /dev/null and b/java/samples/fx/PropetiesFx/dist/PropetiesFx.jar differ diff --git a/java/samples/fx/PropetiesFx/dist/PropetiesFx.jnlp b/java/samples/fx/PropetiesFx/dist/PropetiesFx.jnlp new file mode 100644 index 0000000..94c2aa7 --- /dev/null +++ b/java/samples/fx/PropetiesFx/dist/PropetiesFx.jnlp @@ -0,0 +1,18 @@ + + + + PropetiesFx + denis + null + + + + + + + + + + + + diff --git a/java/samples/fx/PropetiesFx/dist/web-files/dtjava.js b/java/samples/fx/PropetiesFx/dist/web-files/dtjava.js new file mode 100644 index 0000000..b77ecd7 --- /dev/null +++ b/java/samples/fx/PropetiesFx/dist/web-files/dtjava.js @@ -0,0 +1,3958 @@ +/* + * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + */ + +/** + The Java Deployment Toolkit is a utility to deploy Java content in + the browser as applets or applications using the right version of Java. + If needed it can initiate an upgrade of user's system to install required + components of Java platform. +

+ Note that some of the Deployment Toolkit methods may not be fully operational if + used before web page body is loaded (because DT native plugins could not be instantiated). + If you intend to use it before web page DOM tree is ready then dtjava.js + needs to be loaded inside the body element of the page and before use of other DT APIs. + + @module java/deployment_toolkit +*/ +var dtjava = function() { + function notNull(o) { + return (o != undefined && o != null); + } + + function isDef(fn) { + return (fn != null && typeof fn != "undefined"); + } + + //return true if any of patterns from query list is found in the given string + function containsAny(lst, str) { + for (var q = 0; q < lst.length; q++) { + if (str.indexOf(lst[q]) != -1) { + return true; + } + } + return false; + } + + /* Location of static web content - images, javascript files. */ + var jscodebase = (function () { + // + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/samples/fx/PropetiesFx/nbproject/private/configs/______________WebStart.properties b/java/samples/fx/PropetiesFx/nbproject/private/configs/______________WebStart.properties new file mode 100644 index 0000000..7a1d99d --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/private/configs/______________WebStart.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=webstart diff --git a/java/samples/fx/PropetiesFx/nbproject/private/configs/____________________.properties b/java/samples/fx/PropetiesFx/nbproject/private/configs/____________________.properties new file mode 100644 index 0000000..7a7b6e4 --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/private/configs/____________________.properties @@ -0,0 +1,2 @@ +# Do not modify this property in this configuration. It can be re-generated. +javafx.run.as=embedded diff --git a/java/samples/fx/PropetiesFx/nbproject/private/private.properties b/java/samples/fx/PropetiesFx/nbproject/private/private.properties new file mode 100644 index 0000000..2221527 --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/private/private.properties @@ -0,0 +1,4 @@ +auxiliary.org-netbeans-modules-projectapi.issue214819_5f_fx_5f_enabled=true +# \u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0437\u0430\u0434\u0430\u0447\u0438 JavaFX Ant +endorsed.javafx.ant.classpath=. +user.properties.file=C:\\Users\\denis.LAPTOP-4LI8UQ4O\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/java/samples/fx/PropetiesFx/nbproject/private/private.xml b/java/samples/fx/PropetiesFx/nbproject/private/private.xml new file mode 100644 index 0000000..dd9aeb0 --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/denis.LAPTOP-4LI8UQ4O/OneDrive/Документы/NetBeansProjects/PropetiesFx/src/propetiesfx/PropetiesFx.java + + + diff --git a/java/samples/fx/PropetiesFx/nbproject/project.properties b/java/samples/fx/PropetiesFx/nbproject/project.properties new file mode 100644 index 0000000..de2c2e4 --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/project.properties @@ -0,0 +1,113 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=PropetiesFx +application.vendor=denis +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +compile.on.save=true +compile.on.save.unsupported.javafx=true +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/PropetiesFx.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects +jar.archive.disabled=true +jar.compress=false +javac.classpath=\ + ${javafx.classpath.extension} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +javafx.application.implementation.version=1.0 +javafx.binarycss=false +javafx.classpath.extension=\ + ${java.home}/lib/javaws.jar:\ + ${java.home}/lib/deploy.jar:\ + ${java.home}/lib/plugin.jar +javafx.deploy.allowoffline=true +# If true, application update mode is set to 'background', if false, update mode is set to 'eager' +javafx.deploy.backgroundupdate=false +javafx.deploy.embedJNLP=true +javafx.deploy.includeDT=true +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0434\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 (\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438) +javafx.disable.concurrent.runs=false +# \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 'true' \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Run-in-Browser \u0438\u043b\u0438 WebStart +javafx.enable.concurrent.external.runs=false +# This is a JavaFX project +javafx.enabled=true +javafx.fallback.class=com.javafx.main.NoJavaFXFallback +# Main class for JavaFX +javafx.main.class=propetiesfx.PropetiesFx +javafx.preloader.class= +# This project does not use Preloader +javafx.preloader.enabled=false +javafx.preloader.jar.filename= +javafx.preloader.jar.path= +javafx.preloader.project.path= +javafx.preloader.type=none +# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs. +javafx.rebase.libs=false +javafx.run.height=600 +javafx.run.width=800 +# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects +jnlp.enabled=false +# Main class for Java launcher +main.class=com.javafx.main.Main +# \u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0447\u043d\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Codebase \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f RIA +manifest.custom.codebase=* +# \u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 Permissions \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b: sandbox, all-permissions) +manifest.custom.permissions= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${dist.jar}:\ + ${javac.classpath}:\ + ${build.classes.dir} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/java/samples/fx/PropetiesFx/nbproject/project.xml b/java/samples/fx/PropetiesFx/nbproject/project.xml new file mode 100644 index 0000000..42cd191 --- /dev/null +++ b/java/samples/fx/PropetiesFx/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + + + + + PropetiesFx + + + + + + + + + diff --git a/java/samples/fx/PropetiesFx/property.prop b/java/samples/fx/PropetiesFx/property.prop new file mode 100644 index 0000000..eb81614 --- /dev/null +++ b/java/samples/fx/PropetiesFx/property.prop @@ -0,0 +1,4 @@ +#Fri Feb 10 21:22:42 MSK 2023 +db.password=wertjhgfsdfnjyy +db.user=admin +db.url=jdbc\:derby\://localhost\:1527/PersonsDB diff --git a/java/samples/fx/PropetiesFx/src/propetiesfx/PropetiesFx.java b/java/samples/fx/PropetiesFx/src/propetiesfx/PropetiesFx.java new file mode 100644 index 0000000..ac65c5a --- /dev/null +++ b/java/samples/fx/PropetiesFx/src/propetiesfx/PropetiesFx.java @@ -0,0 +1,125 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package propetiesfx; + +import java.io.File; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; +import javafx.application.Application; +import javafx.geometry.Pos; +import javafx.scene.Scene; +import javafx.scene.control.Button; +import javafx.scene.control.Label; +import javafx.scene.control.TextField; +import javafx.scene.layout.ColumnConstraints; +import javafx.scene.layout.GridPane; +import javafx.stage.Stage; +import java.util.Properties; +import java.util.logging.Level; +import java.util.logging.Logger; +import javafx.scene.control.Alert; + +/** + * + * @author denis + */ +public class PropetiesFx extends Application { + private Properties propeties; + private TextField dbUrlField; + private TextField dbUserField; + private TextField dbPasswordField; + + @Override + public void start(Stage primaryStage) { + propeties = new Properties(); + File propertyFile = new File("property.prop"); + try { + if(!propertyFile.exists()) propertyFile.createNewFile(); + }catch(IOException e) {} + Label dbUrl = new Label("db.url="); + dbUrlField = new TextField(); + Label dbUser = new Label("db.user="); + dbUserField = new TextField(); + Label dbPassword = new Label("db.password="); + dbPasswordField = new TextField(); + Button read = new Button("Read"); + read.setOnAction(e -> getProperties(propertyFile)); + Button save = new Button("Save"); + save.setOnAction(e -> setProperties(propertyFile)); + + GridPane root = new GridPane(); + root.setAlignment(Pos.CENTER); + root.setGridLinesVisible(false); + root.getColumnConstraints().add(new ColumnConstraints(100)); + root.setHgap(5); + root.add(dbUrl, 0, 0, 1, 1); + root.add(dbUrlField, 1, 0, 3, 1); + + root.add(dbUser, 0, 1, 1, 1); + root.add(dbUserField, 1, 1, 3, 1); + + root.add(dbPassword, 0, 2, 1, 1); + root.add(dbPasswordField, 1, 2, 3, 1); + + root.add(read, 1, 3, 1, 1); + root.add(save, 3, 3, 1, 1); + + Scene scene = new Scene(root, 600, 500); + + primaryStage.setTitle("Properties"); + primaryStage.setScene(scene); + primaryStage.show(); + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + launch(args); + } + + private void getProperties(File propertyFile){ + try { + propeties.load(new FileReader(propertyFile)); + dbUrlField.setText(propeties.getProperty("db.url")); + dbUserField.setText(propeties.getProperty("db.user")); + dbPasswordField.setText(propeties.getProperty("db.password")); + } catch (IOException ex) { + Logger.getLogger(PropetiesFx.class.getName()).log(Level.SEVERE, null, ex); + } + } + + private void setProperties(File propertyFile){ + String dbUrl = isValid(dbUrlField.getText()) ? dbUrlField.getText() : propeties.getProperty("db.url"); + String dbUser = isValid(dbUserField.getText()) ? dbUserField.getText() : propeties.getProperty("db.user"); + String dbPassword = isValid(dbPasswordField.getText()) ? dbPasswordField.getText() : propeties.getProperty("db.password"); + try { + propeties.setProperty("db.url", dbUrl); + propeties.setProperty("db.user", dbUser); + propeties.setProperty("db.password", dbPassword); + propeties.store(new FileWriter(propertyFile), null); + } catch (IOException ex) { + Logger.getLogger(PropetiesFx.class.getName()).log(Level.SEVERE, null, ex); + } + dbUrlField.setText(dbUrl); + dbUserField.setText(dbUser); + dbPasswordField.setText(dbPassword); + } + + private boolean isValid(String text){ + if(text==null || text.isEmpty()){ + Alert alert = new Alert(Alert.AlertType.WARNING); + alert.setTitle("isValid"); + alert.setHeaderText("Проверка значения ключа!"); + alert.setContentText("Значение ключа не соответствует правилам!"); + alert.showAndWait(); + return false; + } + return true; + } + +}