├── .gitignore ├── LICENSE ├── README.md ├── pom.xml ├── src └── main │ └── java │ └── com │ └── almasb │ └── test │ ├── FXApp.java │ └── FXAppLauncher.java └── target └── JavaFX11-example-1.0-SNAPSHOT.jar /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Package Files # 4 | *.war 5 | *.ear 6 | 7 | # Eclipse # 8 | .classpath 9 | .project 10 | .settings/ 11 | bin/ 12 | 13 | # IDEA # 14 | .idea/ 15 | *.iml 16 | out/ 17 | 18 | # Maven # 19 | dependency-reduced-pom.xml 20 | target/ 21 | 22 | # Gradle # 23 | .gradle/ 24 | 25 | # logs # 26 | *.log 27 | logs/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Almas Baimagambetov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JavaFX11-example 2 | An example that shows how to use JavaFX 11 with Java 11 3 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.almasb 8 | JavaFX11-example 9 | 1.0-SNAPSHOT 10 | jar 11 | 12 | 13 | UTF-8 14 | 15 | 16 | 17 | 18 | org.openjfx 19 | javafx-controls 20 | 11 21 | 22 | 23 | 24 | org.openjfx 25 | javafx-media 26 | 11 27 | win 28 | 29 | 30 | 31 | org.openjfx 32 | javafx-media 33 | 11 34 | mac 35 | 36 | 37 | 38 | org.openjfx 39 | javafx-media 40 | 11 41 | linux 42 | 43 | 44 | 45 | org.openjfx 46 | javafx-graphics 47 | 11 48 | win 49 | 50 | 51 | 52 | org.openjfx 53 | javafx-graphics 54 | 11 55 | mac 56 | 57 | 58 | 59 | org.openjfx 60 | javafx-graphics 61 | 11 62 | linux 63 | 64 | 65 | 66 | org.openjfx 67 | javafx-fxml 68 | 11 69 | 70 | 71 | 72 | 73 | 74 | 75 | org.apache.maven.plugins 76 | maven-compiler-plugin 77 | 3.8.0 78 | 79 | 11 80 | 11 81 | 82 | 83 | 84 | 85 | org.codehaus.mojo 86 | exec-maven-plugin 87 | 1.2.1 88 | 89 | 90 | 91 | java 92 | 93 | 94 | 95 | 96 | com.almasb.test.FXApp 97 | 98 | 99 | 100 | 101 | org.apache.maven.plugins 102 | maven-shade-plugin 103 | 3.0.0 104 | 105 | 106 | package 107 | 108 | shade 109 | 110 | 111 | 112 | 114 | com.almasb.test.FXAppLauncher 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /src/main/java/com/almasb/test/FXApp.java: -------------------------------------------------------------------------------- 1 | package com.almasb.test; 2 | 3 | import javafx.application.Application; 4 | import javafx.scene.Scene; 5 | import javafx.scene.layout.Pane; 6 | import javafx.stage.Stage; 7 | 8 | /** 9 | * @author Almas Baimagambetov (almaslvl@gmail.com) 10 | */ 11 | public class FXApp extends Application { 12 | @Override 13 | public void start(Stage stage) throws Exception { 14 | stage.setScene(new Scene(new Pane(), 800, 600)); 15 | stage.show(); 16 | } 17 | 18 | public static void main(String[] args) { 19 | launch(args); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/almasb/test/FXAppLauncher.java: -------------------------------------------------------------------------------- 1 | package com.almasb.test; 2 | 3 | public class FXAppLauncher { 4 | 5 | public static void main(String[] args) { 6 | FXApp.main(args); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /target/JavaFX11-example-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlmasB/JavaFX11-example/7e17c63230a7771ad1e6f16d9e78fb79b7610674/target/JavaFX11-example-1.0-SNAPSHOT.jar --------------------------------------------------------------------------------