Skip to content

Commit 0836fd4

Browse files
committed
Initial commit
0 parents  commit 0836fd4

4 files changed

Lines changed: 136 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
replay_pid*
25+
26+
target/
27+
pom.xml.tag
28+
pom.xml.releaseBackup
29+
pom.xml.versionsBackup
30+
pom.xml.next
31+
release.properties
32+
dependency-reduced-pom.xml
33+
buildNumber.properties
34+
.mvn/timing.properties
35+
# https://maven.apache.org/tools/wrapper/#Usage_with_or_without_Binary_JAR
36+
.mvn/wrapper/maven-wrapper.jar
37+
38+
# Eclipse m2e generated files
39+
# Eclipse Core
40+
.project
41+
# JDT-specific (Eclipse Java Development Tools)
42+
.classpath
43+
44+
.vscode

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# DesktopApplicationClientJava

‎pom.xml‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>com.DesktopApplicationClientJava</groupId>
9+
<artifactId>DesktopApplicationClientJava</artifactId>
10+
<packaging>jar</packaging>
11+
<version>1.0-SNAPSHOT</version>
12+
13+
<name>DesktopApplicationClientJava</name>
14+
<description>DesktopApplicationClientJava</description>
15+
<url>
16+
https://github.com/vladcheck/DesktopApplicationClientJava
17+
</url>
18+
19+
<properties>
20+
<encoding>UTF-8</encoding>
21+
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
22+
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>
23+
</properties>
24+
25+
<repositories></repositories>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.openjfx</groupId>
30+
<artifactId>javafx-controls</artifactId>
31+
<version>11</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.projectlombok</groupId>
35+
<artifactId>lombok</artifactId>
36+
<version>1.18.48</version>
37+
<scope>provided</scope>
38+
</dependency>
39+
</dependencies>
40+
41+
<build>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<version>3.14.1</version>
47+
<configuration>
48+
<release>25</release>
49+
</configuration>
50+
</plugin>
51+
<plugin>
52+
<groupId>org.openjfx</groupId>
53+
<artifactId>javafx-maven-plugin</artifactId>
54+
<version>0.0.8</version>
55+
<configuration>
56+
<mainClass>com.DesktopApplicationClientJava.Program</mainClass>
57+
</configuration>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
</project>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.DesktopApplicationClientJava;
2+
3+
import javafx.application.Application;
4+
import javafx.scene.Group;
5+
import javafx.scene.Scene;
6+
import javafx.scene.text.Text;
7+
import javafx.stage.Stage;
8+
9+
public class Program extends Application {
10+
public static void main(String[] args) {
11+
launch(args);
12+
}
13+
14+
@Override
15+
public void start(Stage stage) {
16+
Text text = new Text("Hello JAVAFX!");
17+
text.setLayoutX(80);
18+
text.setLayoutY(80);
19+
20+
Group group = new Group(text);
21+
Scene scene = new Scene(group);
22+
23+
stage.setScene(scene);
24+
stage.setTitle("JavaFX Application");
25+
stage.setWidth(300);
26+
stage.setHeight(250);
27+
28+
stage.show();
29+
}
30+
}

0 commit comments

Comments
 (0)