From d77b49d5026ef0d024ed40d3f3f9fa162fb3f1b2 Mon Sep 17 00:00:00 2001 From: Herman Andersen Dyrkorn <hermanad@stud.ntnu.no> Date: Sat, 29 Aug 2020 10:16:31 +0200 Subject: [PATCH] setting up porject --- .idea/.gitignore | 8 ++ .idea/.name | 1 + .idea/compiler.xml | 23 ++++ .idea/description.html | 2 + .idea/encodings.xml | 6 + .idea/gradle.xml | 4 + .idea/jarRepositories.xml | 20 +++ .idea/misc.xml | 9 ++ .idea/modules.xml | 8 ++ .idea/uiDesigner.xml | 125 ++++++++++++++++++ .idea/vcs.xml | 6 + hurlers.iml | 12 ++ .../hurlers/sample/Controller.class | Bin 0 -> 269 bytes out/production/hurlers/sample/Main.class | Bin 0 -> 1200 bytes out/production/hurlers/sample/sample.fxml | 8 ++ src/sample/Controller.java | 4 + src/sample/Main.java | 23 ++++ src/sample/sample.fxml | 8 ++ 18 files changed, 267 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/description.html create mode 100644 .idea/encodings.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/uiDesigner.xml create mode 100644 .idea/vcs.xml create mode 100644 hurlers.iml create mode 100644 out/production/hurlers/sample/Controller.class create mode 100644 out/production/hurlers/sample/Main.class create mode 100644 out/production/hurlers/sample/sample.fxml create mode 100644 src/sample/Controller.java create mode 100644 src/sample/Main.java create mode 100644 src/sample/sample.fxml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..10b0236 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +hurlers \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..217af47 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <option name="DEFAULT_COMPILER" value="Javac" /> + <resourceExtensions /> + <wildcardResourcePatterns> + <entry name="!?*.java" /> + <entry name="!?*.form" /> + <entry name="!?*.class" /> + <entry name="!?*.groovy" /> + <entry name="!?*.scala" /> + <entry name="!?*.flex" /> + <entry name="!?*.kt" /> + <entry name="!?*.clj" /> + </wildcardResourcePatterns> + <annotationProcessing> + <profile default="true" name="Default" enabled="false"> + <processorPath useClasspath="true" /> + </profile> + </annotationProcessing> + </component> +</project> + diff --git a/.idea/description.html b/.idea/description.html new file mode 100644 index 0000000..cc10d56 --- /dev/null +++ b/.idea/description.html @@ -0,0 +1,2 @@ +<html>Simple <b>JavaFX 2.0</b> application that includes simple .fxml file with attached controller and Main class to quick start. Artifact to build JavaFX application is provided. +</html> \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Encoding"> + <file url="PROJECT" charset="UTF-8" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..3e3960b --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="GradleMigrationSettings" migrationVersion="1" /> +</project> \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..712ab9d --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="RemoteRepositoriesConfiguration"> + <remote-repository> + <option name="id" value="central" /> + <option name="name" value="Central Repository" /> + <option name="url" value="https://repo.maven.apache.org/maven2" /> + </remote-repository> + <remote-repository> + <option name="id" value="central" /> + <option name="name" value="Maven Central repository" /> + <option name="url" value="https://repo1.maven.org/maven2" /> + </remote-repository> + <remote-repository> + <option name="id" value="jboss.community" /> + <option name="name" value="JBoss Community repository" /> + <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> + </remote-repository> + </component> +</project> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..4e6e724 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectKey"> + <option name="state" value="project://e79810c8-c5c8-43b1-b19c-90c1f4095425" /> + </component> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ebf6c29 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/hurlers.iml" filepath="$PROJECT_DIR$/hurlers.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..3b00020 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,125 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Palette2"> + <group name="Swing"> + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> + </item> + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> + </item> + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> + <initial-values> + <property name="text" value="Button" /> + </initial-values> + </item> + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="RadioButton" /> + </initial-values> + </item> + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="CheckBox" /> + </initial-values> + </item> + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> + <initial-values> + <property name="text" value="Label" /> + </initial-values> + </item> + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> + <preferred-size width="150" height="-1" /> + </default-constraints> + </item> + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> + <preferred-size width="150" height="50" /> + </default-constraints> + </item> + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> + <preferred-size width="200" height="200" /> + </default-constraints> + </item> + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> + <preferred-size width="200" height="200" /> + </default-constraints> + </item> + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> + </item> + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> + </item> + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> + </item> + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> + <preferred-size width="-1" height="20" /> + </default-constraints> + </item> + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> + </item> + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> + </item> + </group> + </component> +</project> + diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/hurlers.iml b/hurlers.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ b/hurlers.iml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> + diff --git a/out/production/hurlers/sample/Controller.class b/out/production/hurlers/sample/Controller.class new file mode 100644 index 0000000000000000000000000000000000000000..1a0efd475a3846ad55573e2c70260ef39678d3f4 GIT binary patch literal 269 zcmZXO&5FW65QM8^el$kou20}iJ(!C(#f#u6=wTP{lQ`(en2|C1UVB>b-~;SKi5(I4 zU^f(9ReaEY_v;P77@ZI`v;wpP!~}n;3RTVswf<mDaOY+t32~|lxjY{-X}?9LIr&UY zF7#ShRry!wmOFJKbkmbK9JNg5rYNn^TG|OA{4!^o%Y~}&_`e$M#YIGL;SoOGKtiYL z6D^8uvdZ={FVTa;FIPjn46^#{lBWl};V<Zi0|x=C&oLONvqsO`Ljxf@LX*`&^Z=yF BH?05w literal 0 HcmV?d00001 diff --git a/out/production/hurlers/sample/Main.class b/out/production/hurlers/sample/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..e1118a1cb68ba5b595b5b6770f447ba3e97245b5 GIT binary patch literal 1200 zcmZuxT~pIQ6g^8n(uP1wX^WyFAZnpNQ1BDPA|Ilr=m4UQPfJ-!m^7(LP#k}iFNM(= zhi8A3<K3jRWrmmCyEpgTbMD={`TOtJ9{_XMP|=TZ6%!~XFsWh+(<*e#D7crveHF8q zQ}7^Oa?dCnh?l<11cr(v9?H*;<nmZW22T_`RWQ#GUodUcUu1|B#&;N^%g&x)NExOr zHjZk$!rkV(7I`v;Q{mPQcTIV2I-~x9=`r*e9<S9cp_jR7Q_h&@bJu4WC>V$QE8joX z$x#*hmR#p0jaGNf8h5`39)|2?aU{ld97>aGeXR&v=<m2IY@cY<)#Hk&`=(=i3Kl55 zM)VB%!sh^>TimV^r)%2PfHcb8Dyi+i<TEAPa*o`JSTkj@Nm<CW)UF|moPuW>7V(^+ zJ1lg1|F~u;C}~*23kAy>R<KH$&#UdwNtktES<dhW$F=qptZ8_Ob?WDZ*e!{WT(2~| z#v2U=avI7QYf%QhWf*G0c)f0!6)ua{m)dqyLs)vNJq&3H3%zf54@HH#ny3nY+2Wq; zNMXFAV}X;}n`&d4aoq&j6kgCMhSBhLFSa?%V+&t@ziCjCd{eJ%n7;P0Y#0vT6E0nr zMMgWxIigcYsFaeldexpH((eg>+w|pi<t|e~Q#RP1zm6N3Us;hODDgqtFU)BW7r4Wb z@eZ7C^hhjzWLFL_LNBL3cv2D2)FMY~p3XY$jP}^X3D{3Ex-dX%Ja8s)g={Shz*P*= ziQyWqQ<Mb%KmrlkrzRTc%0wE7o+5UJc)6HS8b}m>Bl&4E3pESv1icNUiVdXOBzeRL z+=DcFDP0N$vL?|NkPe55o1{d68yF(;H0?JrOaev-8zs*u{UUB*j4UZ>miDloQ}nf| XR04pCj#5x(O}BA}{0w(#?Ly%{Ru>N9 literal 0 HcmV?d00001 diff --git a/out/production/hurlers/sample/sample.fxml b/out/production/hurlers/sample/sample.fxml new file mode 100644 index 0000000..363237a --- /dev/null +++ b/out/production/hurlers/sample/sample.fxml @@ -0,0 +1,8 @@ +<?import javafx.geometry.Insets?> +<?import javafx.scene.layout.GridPane?> + +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.Label?> +<GridPane fx:controller="sample.Controller" + xmlns:fx="http://javafx.com/fxml" alignment="center" hgap="10" vgap="10"> +</GridPane> \ No newline at end of file diff --git a/src/sample/Controller.java b/src/sample/Controller.java new file mode 100644 index 0000000..54e5bd1 --- /dev/null +++ b/src/sample/Controller.java @@ -0,0 +1,4 @@ +package sample; + +public class Controller { +} diff --git a/src/sample/Main.java b/src/sample/Main.java new file mode 100644 index 0000000..5333744 --- /dev/null +++ b/src/sample/Main.java @@ -0,0 +1,23 @@ +package sample; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +public class Main extends Application { + + @Override + public void start(Stage primaryStage) throws Exception{ + Parent root = FXMLLoader.load(getClass().getResource("sample.fxml")); + primaryStage.setTitle("Hello World"); + primaryStage.setScene(new Scene(root, 300, 275)); + primaryStage.show(); + } + + + public static void main(String[] args) { + launch(args); + } +} diff --git a/src/sample/sample.fxml b/src/sample/sample.fxml new file mode 100644 index 0000000..363237a --- /dev/null +++ b/src/sample/sample.fxml @@ -0,0 +1,8 @@ +<?import javafx.geometry.Insets?> +<?import javafx.scene.layout.GridPane?> + +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.Label?> +<GridPane fx:controller="sample.Controller" + xmlns:fx="http://javafx.com/fxml" alignment="center" hgap="10" vgap="10"> +</GridPane> \ No newline at end of file -- GitLab