Skip to content
Snippets Groups Projects
Commit 242eea16 authored by Mikkel Marstein's avatar Mikkel Marstein
Browse files

Endringer

parent 66179d81
No related branches found
No related tags found
No related merge requests found
Showing
with 97 additions and 21 deletions
...@@ -3,7 +3,7 @@ image: ...@@ -3,7 +3,7 @@ image:
tasks: tasks:
- init: sdk use java 14.0.2.j9-adpt - init: sdk use java 14.0.2.j9-adpt
command: cd javafx-app command: cd Valutakalkulator
ports: ports:
# used by virtual desktop and vnc, supports JavaFX # used by virtual desktop and vnc, supports JavaFX
......
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "verify",
"type": "shell",
"command": "mvn -B verify",
"group": "build"
},
{
"label": "test",
"type": "shell",
"command": "mvn -B test",
"group": "test"
}
]
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="test">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-13">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Valutakalkulator</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>it1901</groupId> <groupId>it1901</groupId>
<artifactId>javafx-app</artifactId> <artifactId>Valutakalkulator</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<dependencies> <dependencies>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<artifactId>javafx-maven-plugin</artifactId> <artifactId>javafx-maven-plugin</artifactId>
<version>0.0.4</version> <version>0.0.4</version>
<configuration> <configuration>
<mainClass>javafxapp.App</mainClass> <mainClass>Valutakalkulator.App</mainClass>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
<?import javafx.scene.layout.Pane?> <?import javafx.scene.layout.Pane?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<Pane xmlns:fx="http://javafx.com/fxml/1" fx:controller="javafxapp.AppController"> <Pane xmlns:fx="http://javafx.com/fxml/1" fx:controller="Valutakalkulator.AppController">
<Button fx:id="clickMeButton" text="Click me!" onAction="#handleClickMeButtonAction"/> <Button fx:id="clickMeButton" text="Click me!" onAction="#handleClickMeButtonAction"/>
</Pane> </Pane>
package javafxapp; package Valutakalkulator;
import javafx.application.Application; import javafx.application.Application;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
......
package javafxapp; package Valutakalkulator;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.control.Button; import javafx.scene.control.Button;
......
package application; package Valutakalkulator;
import javafx.application.Application; import javafx.application.Application;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?> <?import javafx.scene.text.Text?>
<AnchorPane xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.ValutaKalkulatorController"> <AnchorPane xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Valutakalkulator.ValutaKalkulatorController">
<children> <children>
<BorderPane prefHeight="325.0" prefWidth="435.0"> <BorderPane prefHeight="325.0" prefWidth="435.0">
<top> <top>
......
package application; package Valutakalkulator;
import java.util.Hashtable; import java.util.Hashtable;
......
package application; package Valutakalkulator;
......
package javafxapp; package Valutakalkulator;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
......
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
\ No newline at end of file
module javafxapp {
requires javafx.fxml;
requires transitive javafx.graphics;
requires javafx.controls;
exports javafxapp;
opens javafxapp to javafx.fxml;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment