Skip to content

Commit

Permalink
Merge pull request openjfx#33 from jperedadnr/master
Browse files Browse the repository at this point in the history
#107 Update samples with latest versions
  • Loading branch information
José Pereda authored Jul 31, 2019
2 parents e98a05e + faf9a64 commit 8858a93
Show file tree
Hide file tree
Showing 37 changed files with 69 additions and 87 deletions.
6 changes: 3 additions & 3 deletions CommandLine/Modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.beryx.jlink' version '2.9.4'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
}

repositories {
mavenCentral()
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls' ]
}

Expand Down
8 changes: 4 additions & 4 deletions CommandLine/Modular/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<release>12</release>
<jlinkImageName>hellofx</jlinkImageName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand All @@ -22,14 +21,6 @@ public void start(Stage stage) throws Exception {
stage.show();
}

/**
* The main() method is ignored in correctly deployed JavaFX application.
* main() serves only as fallback in case the application can not be
* launched through deployment artifacts, e.g., in IDEs with limited FX
* support. NetBeans ignores main().
*
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}
Expand Down
4 changes: 2 additions & 2 deletions CommandLine/Non-modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.openjfx.javafxplugin' version '0.0.8'
}

repositories {
Expand All @@ -15,7 +15,7 @@ dependencies {
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls' ]
}

Expand Down
12 changes: 6 additions & 6 deletions CommandLine/Non-modular/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
<!-- Uncomment for cross-platform fat jar
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
<classifier>win</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
<classifier>linux</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
<classifier>mac</classifier>
</dependency> -->
</dependencies>
Expand All @@ -45,15 +45,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<mainClass>hellofx.HelloFX</mainClass>
</configuration>
Expand Down
4 changes: 2 additions & 2 deletions HelloFX/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.openjfx.javafxplugin' version '0.0.8'
}

repositories {
mavenCentral()
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls' ]
}

Expand Down
4 changes: 2 additions & 2 deletions HelloFX/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<mainClass>HelloFX</mainClass>
</configuration>
Expand Down
6 changes: 3 additions & 3 deletions IDE/Eclipse/Modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
plugins {
id 'application'
id 'eclipse'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.beryx.jlink' version '2.9.4'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
}

repositories {
mavenCentral()
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand Down
8 changes: 4 additions & 4 deletions IDE/Eclipse/Modular/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<release>12</release>
<jlinkImageName>hellofx</jlinkImageName>
Expand Down
4 changes: 2 additions & 2 deletions IDE/Eclipse/Non-Modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.openjfx.javafxplugin' version '0.0.8'
}

repositories {
Expand All @@ -11,7 +11,7 @@ dependencies {
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand Down
8 changes: 4 additions & 4 deletions IDE/Eclipse/Non-Modular/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12.0.1</version>
<version>12.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<mainClass>org.openjfx.hellofx.App</mainClass>
</configuration>
Expand Down
6 changes: 3 additions & 3 deletions IDE/IntelliJ/Modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.beryx.jlink' version '2.9.4'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.12.0'
}

repositories {
mavenCentral()
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.button {
-fx-font-weight: bold;
.label {
-fx-text-fill: blue;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.openjfx;

import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
Expand Down
8 changes: 4 additions & 4 deletions IDE/IntelliJ/Modular/Maven/hellofx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12</version>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12</version>
<version>12.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.2</version>
<version>0.0.3</version>
<configuration>
<release>12</release>
<jlinkImageName>hellofx</jlinkImageName>
Expand Down
4 changes: 2 additions & 2 deletions IDE/IntelliJ/Non-Modular/Gradle/hellofx/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.openjfx.javafxplugin' version '0.0.8'
}

repositories {
Expand All @@ -11,7 +11,7 @@ dependencies {
}

javafx {
version = "12"
version = "12.0.2"
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Expand Down
Loading

0 comments on commit 8858a93

Please sign in to comment.