Skip to content

Commit edac079

Browse files
committed
Working On User Interface
1 parent a235e7c commit edac079

16 files changed

+5740
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/nbproject/private/
2+
/dist/
3+
/build/

build.xml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8"?><!-- You may freely edit this file. See commented blocks below for --><!-- some examples of how to customize the build. --><!-- (If you delete it and reopen the project it will be recreated.) --><!-- By default, only the Clean and Build commands use this build script. --><project name="Fake_Image_Detection" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
2+
<description>Builds, tests, and runs the project Fake Image Detection.</description>
3+
<import file="nbproject/build-impl.xml"/>
4+
<!--
5+
6+
There exist several targets which are by default empty and which can be
7+
used for execution of your tasks. These targets are usually executed
8+
before and after some main targets. Those of them relevant for JavaFX project are:
9+
10+
-pre-init: called before initialization of project properties
11+
-post-init: called after initialization of project properties
12+
-pre-compile: called before javac compilation
13+
-post-compile: called after javac compilation
14+
-pre-compile-test: called before javac compilation of JUnit tests
15+
-post-compile-test: called after javac compilation of JUnit tests
16+
-pre-jfx-jar: called before FX SDK specific <fx:jar> task
17+
-post-jfx-jar: called after FX SDK specific <fx:jar> task
18+
-pre-jfx-deploy: called before FX SDK specific <fx:deploy> task
19+
-post-jfx-deploy: called after FX SDK specific <fx:deploy> task
20+
-pre-jfx-native: called just after -pre-jfx-deploy if <fx:deploy> runs in native packaging mode
21+
-post-jfx-native: called just after -post-jfx-deploy if <fx:deploy> runs in native packaging mode
22+
-post-clean: called after cleaning build products
23+
24+
(Targets beginning with '-' are not intended to be called on their own.)
25+
26+
Example of inserting a HTML postprocessor after javaFX SDK deployment:
27+
28+
<target name="-post-jfx-deploy">
29+
<basename property="jfx.deployment.base" file="${jfx.deployment.jar}" suffix=".jar"/>
30+
<property name="jfx.deployment.html" location="${jfx.deployment.dir}${file.separator}${jfx.deployment.base}.html"/>
31+
<custompostprocess>
32+
<fileset dir="${jfx.deployment.html}"/>
33+
</custompostprocess>
34+
</target>
35+
36+
Example of calling an Ant task from JavaFX SDK. Note that access to JavaFX SDK Ant tasks must be
37+
initialized; to ensure this is done add the dependence on -check-jfx-sdk-version target:
38+
39+
<target name="-post-jfx-jar" depends="-check-jfx-sdk-version">
40+
<echo message="Calling jar task from JavaFX SDK"/>
41+
<fx:jar ...>
42+
...
43+
</fx:jar>
44+
</target>
45+
46+
For more details about JavaFX SDK Ant tasks go to
47+
http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm
48+
49+
For list of available properties check the files
50+
nbproject/build-impl.xml and nbproject/jfx-impl.xml.
51+
52+
-->
53+
</project>

lib/jfoenix.jar

2.03 MB
Binary file not shown.

manifest.mf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
X-COMMENT: Main-Class will be added automatically by build
3+

nbproject/build-impl.xml

+1,420
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Do not modify this property in this configuration. It can be re-generated.
2+
$label=Run as WebStart
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Do not modify this property in this configuration. It can be re-generated.
2+
$label=Run in Browser

nbproject/genfiles.properties

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.xml.data.CRC32=6f51bc78
2+
build.xml.script.CRC32=91121d0f
3+
build.xml.stylesheet.CRC32=[email protected]
4+
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5+
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6+
nbproject/build-impl.xml.data.CRC32=6f51bc78
7+
nbproject/build-impl.xml.script.CRC32=0feb16f7
8+
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]

nbproject/jfx-impl.xml

+4,008
Large diffs are not rendered by default.

nbproject/project.properties

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
annotation.processing.enabled=true
2+
annotation.processing.enabled.in.editor=false
3+
annotation.processing.processor.options=
4+
annotation.processing.processors.list=
5+
annotation.processing.run.all.processors=true
6+
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7+
application.title=Fake Image Detection
8+
application.vendor=afsal
9+
build.classes.dir=${build.dir}/classes
10+
build.classes.excludes=**/*.java,**/*.form
11+
# This directory is removed when the project is cleaned:
12+
build.dir=build
13+
build.generated.dir=${build.dir}/generated
14+
build.generated.sources.dir=${build.dir}/generated-sources
15+
# Only compile against the classpath explicitly listed here:
16+
build.sysclasspath=ignore
17+
build.test.classes.dir=${build.dir}/test/classes
18+
build.test.results.dir=${build.dir}/test/results
19+
compile.on.save=true
20+
compile.on.save.unsupported.javafx=true
21+
# Uncomment to specify the preferred debugger connection transport:
22+
#debug.transport=dt_socket
23+
debug.classpath=\
24+
${run.classpath}
25+
debug.test.classpath=\
26+
${run.test.classpath}
27+
# This directory is removed when the project is cleaned:
28+
dist.dir=dist
29+
dist.jar=${dist.dir}/Fake Image Detection.jar
30+
dist.javadoc.dir=${dist.dir}/javadoc
31+
endorsed.classpath=
32+
excludes=
33+
file.reference.jfoenix.jar=lib/jfoenix.jar
34+
includes=**
35+
# Non-JavaFX jar file creation is deactivated in JavaFX 2.0+ projects
36+
jar.archive.disabled=true
37+
jar.compress=false
38+
javac.classpath=\
39+
${javafx.classpath.extension}:\
40+
${file.reference.jfoenix.jar}
41+
# Space-separated list of extra javac options
42+
javac.compilerargs=
43+
javac.deprecation=false
44+
javac.processorpath=\
45+
${javac.classpath}
46+
javac.source=1.8
47+
javac.target=1.8
48+
javac.test.classpath=\
49+
${javac.classpath}:\
50+
${build.classes.dir}
51+
javac.test.processorpath=\
52+
${javac.test.classpath}
53+
javadoc.additionalparam=
54+
javadoc.author=false
55+
javadoc.encoding=${source.encoding}
56+
javadoc.noindex=false
57+
javadoc.nonavbar=false
58+
javadoc.notree=false
59+
javadoc.private=false
60+
javadoc.splitindex=true
61+
javadoc.use=true
62+
javadoc.version=false
63+
javadoc.windowtitle=
64+
javafx.application.implementation.version=1.0
65+
javafx.binarycss=false
66+
javafx.classpath.extension=\
67+
${java.home}/lib/javaws.jar:\
68+
${java.home}/lib/deploy.jar:\
69+
${java.home}/lib/plugin.jar
70+
javafx.deploy.allowoffline=true
71+
# If true, application update mode is set to 'background', if false, update mode is set to 'eager'
72+
javafx.deploy.backgroundupdate=false
73+
javafx.deploy.embedJNLP=true
74+
javafx.deploy.includeDT=true
75+
# Set true to prevent creation of temporary copy of deployment artifacts before each run (disables concurrent runs)
76+
javafx.disable.concurrent.runs=false
77+
# Set true to enable multiple concurrent runs of the same WebStart or Run-in-Browser project
78+
javafx.enable.concurrent.external.runs=false
79+
# This is a JavaFX project
80+
javafx.enabled=true
81+
javafx.fallback.class=com.javafx.main.NoJavaFXFallback
82+
# Main class for JavaFX
83+
javafx.main.class=com.qburst.ai.fake_image_detection.FakeImageDetection
84+
javafx.preloader.class=
85+
# This project does not use Preloader
86+
javafx.preloader.enabled=false
87+
javafx.preloader.jar.filename=
88+
javafx.preloader.jar.path=
89+
javafx.preloader.project.path=
90+
javafx.preloader.type=none
91+
# Set true for GlassFish only. Rebases manifest classpaths of JARs in lib dir. Not usable with signed JARs.
92+
javafx.rebase.libs=false
93+
javafx.run.height=600
94+
javafx.run.width=800
95+
# Pre-JavaFX 2.0 WebStart is deactivated in JavaFX 2.0+ projects
96+
jnlp.enabled=false
97+
# Main class for Java launcher
98+
main.class=com.javafx.main.Main
99+
# For improved security specify narrower Codebase manifest attribute to prevent RIAs from being repurposed
100+
manifest.custom.codebase=*
101+
# Specify Permissions manifest attribute to override default (choices: sandbox, all-permissions)
102+
manifest.custom.permissions=
103+
manifest.file=manifest.mf
104+
meta.inf.dir=${src.dir}/META-INF
105+
platform.active=default_platform
106+
run.classpath=\
107+
${dist.jar}:\
108+
${javac.classpath}:\
109+
${build.classes.dir}
110+
run.test.classpath=\
111+
${javac.test.classpath}:\
112+
${build.test.classes.dir}
113+
source.encoding=UTF-8
114+
src.dir=src
115+
test.src.dir=test

nbproject/project.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.java.j2seproject</type>
4+
<configuration>
5+
<buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
6+
<extension file="jfx-impl.xml" id="jfx3">
7+
<dependency dependsOn="-jfx-copylibs" target="-post-jar"/>
8+
<dependency dependsOn="-rebase-libs" target="-post-jar"/>
9+
<dependency dependsOn="jfx-deployment" target="-post-jar"/>
10+
<dependency dependsOn="jar" target="debug"/>
11+
<dependency dependsOn="jar" target="profile"/>
12+
<dependency dependsOn="jar" target="run"/>
13+
</extension>
14+
</buildExtensions>
15+
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
16+
<name>Fake Image Detection</name>
17+
<source-roots>
18+
<root id="src.dir"/>
19+
</source-roots>
20+
<test-roots>
21+
<root id="test.src.dir"/>
22+
</test-roots>
23+
</data>
24+
</configuration>
25+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.qburst.ai.fake_image_detection;
2+
3+
import javafx.application.Application;
4+
import javafx.fxml.FXMLLoader;
5+
import javafx.scene.Parent;
6+
import javafx.scene.Scene;
7+
import javafx.stage.Stage;
8+
9+
10+
public class FakeImageDetection extends Application {
11+
12+
@Override
13+
public void start(Stage stage) throws Exception {
14+
Parent root = FXMLLoader.load(getClass().getResource("/resources/fxml/main_window.fxml"));
15+
16+
Scene scene = new Scene(root);
17+
18+
stage.setTitle("Christopher");
19+
stage.setScene(scene);
20+
stage.show();
21+
}
22+
23+
public static void main(String[] args) {
24+
launch(args);
25+
}
26+
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
package com.qburst.ai.fake_image_detection.controllers;
3+
4+
import java.net.URL;
5+
import java.util.ResourceBundle;
6+
import javafx.event.ActionEvent;
7+
import javafx.fxml.FXML;
8+
import javafx.fxml.Initializable;
9+
import javafx.scene.control.Button;
10+
import javafx.scene.control.Label;
11+
12+
13+
public class Main_window_controller implements Initializable {
14+
15+
@Override
16+
public void initialize(URL url, ResourceBundle rb) {
17+
// TODO
18+
}
19+
20+
}

src/resources/fxml/infinity_image.png

751 KB
Loading

src/resources/fxml/main_window.fxml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import javafx.scene.effect.GaussianBlur?>
4+
<?import javafx.scene.effect.Glow?>
5+
<?import javafx.scene.image.Image?>
6+
<?import javafx.scene.image.ImageView?>
7+
<?import javafx.scene.layout.AnchorPane?>
8+
<?import javafx.scene.layout.StackPane?>
9+
<?import javafx.scene.paint.LinearGradient?>
10+
<?import javafx.scene.paint.Stop?>
11+
<?import javafx.scene.text.Font?>
12+
<?import javafx.scene.text.Text?>
13+
14+
15+
<StackPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="529.0" prefWidth="777.0" styleClass="launch_panel" stylesheets="@../stylesheets/main.css" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1">
16+
<children>
17+
<ImageView fitHeight="566.0" fitWidth="884.0" pickOnBounds="true" preserveRatio="true">
18+
<image>
19+
<Image url="@b1.png" />
20+
</image>
21+
<effect>
22+
<GaussianBlur radius="19.0" />
23+
</effect>
24+
</ImageView>
25+
<AnchorPane prefHeight="407.0" prefWidth="632.0" stylesheets="@../stylesheets/main.css">
26+
<children>
27+
<Text fill="#eff88c" layoutX="3.0" layoutY="84.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Fake Image Detector Powered By AI" textAlignment="CENTER" wrappingWidth="770.9999903440475">
28+
<font>
29+
<Font name="Ubuntu" size="19.0" />
30+
</font>
31+
</Text>
32+
<Text fontSmoothingType="LCD" layoutX="3.0" layoutY="49.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Christopher" textAlignment="CENTER" wrappingWidth="770.9999966353644">
33+
<font>
34+
<Font name="TakaoPGothic" size="41.0" />
35+
</font>
36+
<fill>
37+
<LinearGradient endX="0.8942307692307693" endY="1.0" startX="0.0721153846153846">
38+
<stops>
39+
<Stop color="#46ff7de3" />
40+
<Stop color="#24d3b3" offset="1.0" />
41+
</stops>
42+
</LinearGradient>
43+
</fill>
44+
<effect>
45+
<Glow level="1.0" />
46+
</effect>
47+
</Text>
48+
</children>
49+
</AnchorPane>
50+
</children>
51+
</StackPane>

src/resources/stylesheets/main.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.panel2{
2+
-fx-background-color: #0f0f0f;
3+
}

0 commit comments

Comments
 (0)