Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • georgeas-main-patch-73750
  • hal
  • main
3 results

Target

Select target project
  • njaalbt/javafx-template
  • hannelf/javafx-template
  • stefamac/javafx-template
  • isabelro/javafx-template
  • iverbb/javafx-template
  • annaost/javafx-template
  • it1901/javafx-template
  • martivl/javafx-template
  • sigrife/javafx-template
  • caspef/javafx-template
  • olavik/javafx-template
  • chstens/javafx-template
  • johnhanf/javafx-template
  • alexgr/javafx-template
  • fredfp/fredfp
  • haakkar/javafx-template
  • camilsje/javafx-template
  • jole/javafx-template
  • andevest/javafx-template
  • smburud/javafx-template
  • brageaj/brageaj
  • hermao/javafx-template
  • srishtr/javafx-template
  • markuhw/javafx-template
  • haakonmm/haakonmm
  • petramh/petramh
26 results
Select Git revision
  • hal
  • main
2 results
Show changes
Commits on Source (15)
FROM gitpod/workspace-full-vnc
USER gitpod
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 16.0.1.hs-adpt \
&& sdk default java 16.0.1.hs-adpt"
image:
file: .gitpod.Dockerfile
tasks:
- init: sdk use java 16.0.1.hs-adpt
command: cd javafx-template; mvn compile
ports:
# used by virtual desktop and vnc, supports JavaFX
- port: 6080
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "javafx-template App",
"request": "launch",
"mainClass": "app/app.App",
"vmArgs": ["--add-opens", "app/app=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"],
"projectName": "javafx-template"
},
{
"type": "java",
"name": "modules-template App",
"request": "launch",
"mainClass": "calc.ui/ui.App",
"vmArgs": ["--add-opens", "calc.ui/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"],
"projectName": "modules-ui"
},
{
"type": "java",
"name": "packages-template App",
"request": "launch",
"mainClass": "app/ui.App",
"vmArgs": ["--add-opens", "app/core=ALL-UNNAMED", "--add-opens", "app/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"],
"projectName": "packages-template"
}
]
}
\ No newline at end of file
{
"java.configuration.updateBuildConfiguration": "automatic"
"java.configuration.updateBuildConfiguration": "automatic",
"[java]": {
"editor.tabSize": 2
},
"java.test.config": [
{
"name": "coreTesting",
"vmArgs": []
},
{
"name": "modules-template testing",
"vmArgs": ["--add-opens", "calc.ui/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
},
{
"name": "javafx-template testing",
"vmArgs": ["--add-opens", "app/app=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
},
{
"name": "packages-template testing",
"vmArgs": ["--add-opens", "app/core=ALL-UNNAMED", "--add-opens", "app/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
],
"java.compile.nullAnalysis.mode": "automatic",
"java.debug.settings.onBuildFailureProceed": true
}
\ No newline at end of file
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.stud.ntnu.no/#https://gitlab.stud.idi.ntnu.no/it1901/javafx-template)
# Javafx template
A repository with three variants of a javafx projects, with maven setup for Java 16 and JavaFX 16, and JUnit 5 (Jupiter) and TestFX for testing.
[open in Eclipse Che](https://che.stud.ntnu.no/#https://gitlab.stud.idi.ntnu.no/it1901/javafx-template?new)
A repository with three variants of a javafx projects, with maven setup for Java 17 and JavaFX 17, and JUnit 5 (Jupiter) and TestFX for testing.
To make the project(s) more interesting, it is the start of an [RPN](https://en.wikipedia.org/wiki/Reverse_Polish_notation) calculator (look for `// TODO`) markers). The core logic is almost implemented (in [Calc.java](javafx-template/src/main/java/app/Calc.java)), the fxml file (in [App.fxml](javafx-template/src/main/resources/app/App.fxml) is almost complete, but the controller class (in [AppController.java](javafx-template/src/main/java/app/AppController.java) is pretty limited. And last, but not least, there is a TestFX-based test (in [AppTest.java](javafx-template/src/test/java/app/AppTest.java), see the [README](javafx-template/src/test/java/app/README.md) for details about what it tests).
......
schemaVersion: 2.1.0
metadata:
name: javafx-template
components:
- name: javafx-template
container:
image: adrianstoica/it1901:latest
memoryLimit: 3Gi
endpoints:
- exposure: public
name: 6080-tcp-desktop-ui
protocol: https
targetPort: 6080
- exposure: public
name: 3000-tcp
protocol: http
targetPort: 3000
- exposure: public
name: 5900-tcp
protocol: http
targetPort: 5900
- exposure: public
name: 5901-tcp
protocol: http
targetPort: 5901
- exposure: public
name: 8080-tcp
protocol: http
targetPort: 8080
- exposure: public
name: 5500-tcp
protocol: http
targetPort: 5500
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch javafx-template - single module, single package",
"request": "launch",
"mainClass": "app/app.App",
"vmArgs": "--add-opens app/app=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED",
"projectName": "javafx-template"
}
]
}
{
"java.configuration.updateBuildConfiguration": "automatic",
"[java]": {
"editor.tabSize": 2
},
"java.test.config": [
{
"name": "javafx-template testing",
"vmArgs": ["--add-opens", "app/app=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
],
"java.test.defaultConfig": "javafx-template testing",
"java.compile.nullAnalysis.mode": "automatic",
"java.debug.settings.onBuildFailureProceed": true
}
\ No newline at end of file
......@@ -7,8 +7,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
......@@ -17,31 +17,31 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<!-- junit testing with jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
......@@ -72,15 +72,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.2</version>
<configuration>
<argLine>
--add-opens app/app=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
......@@ -91,11 +90,11 @@
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.6</version>
<version>0.0.8</version>
<!-- Default configuration for running -->
<!-- Usage: mvn javafx:run -->
<configuration>
<mainClass>app.App</mainClass>
<mainClass>app/app.App</mainClass>
</configuration>
</plugin>
</plugins>
......
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch modules-template - multi-module, multi-package ",
"request": "launch",
"mainClass": "calc.ui/ui.App",
"projectName": "modules-ui",
"vmArgs": ["--add-opens", "calc.ui/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
]
}
\ No newline at end of file
{
"java.configuration.updateBuildConfiguration": "automatic",
"[java]": {
"editor.tabSize": 2
},
"java.test.config": [
{
"name": "coreTesting",
"vmArgs": []
},
{
"name": "modules-template testing",
"vmArgs": ["--add-opens", "calc.ui/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
],
"java.test.defaultConfig": "modules-template testing",
"java.compile.nullAnalysis.mode": "automatic",
"java.debug.settings.onBuildFailureProceed": true
}
\ No newline at end of file
......@@ -8,8 +8,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<skipTests>false</skipTests>
</properties>
......@@ -18,19 +18,19 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>
......@@ -42,15 +42,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.2</version>
<configuration>
<skipTests>${skipTests}</skipTests>
</configuration>
......
......@@ -22,12 +22,12 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<!-- junit testing with jupiter -->
......@@ -85,7 +85,7 @@
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.6</version>
<version>0.0.8</version>
<!-- Default configuration for running -->
<!-- Usage: mvn javafx:run -->
<configuration>
......
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch packages-template - single-module, multi-package",
"request": "launch",
"mainClass": "app/ui.App",
"vmArgs": ["--add-opens", "app/core=ALL-UNNAMED","--add-opens", "app/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"],
"projectName": "packages-template"
}
]
}
\ No newline at end of file
{
"java.configuration.updateBuildConfiguration": "automatic",
"[java]": {
"editor.tabSize": 2
},
"java.test.config": [
{
"name": "coreTesting",
"vmArgs": []
},
{
"name": "packages-template testing",
"vmArgs": ["--add-opens", "app/core=ALL-UNNAMED","--add-opens", "app/ui=ALL-UNNAMED", "--add-exports", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
],
"java.test.defaultConfig": "packages-template testing",
"java.compile.nullAnalysis.mode": "automatic",
"java.debug.settings.onBuildFailureProceed": true
}
\ No newline at end of file
......@@ -7,8 +7,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
......@@ -17,31 +17,31 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>16</version>
<version>17.0.8</version>
</dependency>
<!-- junit testing with jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.7.2</version>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
......@@ -72,18 +72,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.11.0</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<version>3.1.2</version>
<configuration>
<argLine>
--add-opens app/ui=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
--add-opens app/core=ALL-UNNAMED --add-opens app/ui=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
......@@ -91,11 +90,11 @@
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.6</version>
<version>0.0.8</version>
<!-- Default configuration for running -->
<!-- Usage: mvn javafx:run -->
<configuration>
<mainClass>app.App</mainClass>
<mainClass>app/ui.App</mainClass>
</configuration>
</plugin>
</plugins>
......