Skip to content

Commit 475c23d

Browse files
minor clean-up
1 parent b2b7fe2 commit 475c23d

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
dependencies {
1111
// ControlsFX
12-
implementation ('org.controlsfx:controlsfx:11.0.3') {
12+
implementation ('org.controlsfx:controlsfx:11.1.0') {
1313
exclude group: 'org.openjfx', module: '*'
1414
}
1515

@@ -49,15 +49,15 @@ repositories {
4949
}
5050

5151
javafx {
52-
version = '16-ea+5' // '14.0.2.1'
52+
version = '16' // '14.0.2.1'
5353
modules = ['javafx.controls']
5454
}
5555

5656
xjcGenerate {
5757
source = fileTree('src/main/resources') { include '*.xsd' }
5858
}
5959

60-
version = '20.12.15'
60+
version = '21.04.09'
6161
def company = 'My Company'
6262

6363
mainClassName = "com.example.hellofx.Launcher"
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#Mon Apr 25 12:16:33 CEST 2016
1+
#Mon Jun 15 10:34:44 CEST 2020
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
23
distributionBase=GRADLE_USER_HOME
34
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
# distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
7-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-all.zip
8-
#distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip
6+
zipStoreBase=GRADLE_USER_HOME

src/main/java/com/example/hellofx/HelloFX.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ Tab getTabControlsFX() {
301301

302302
HyperlinkLabel hyperlinkLabel = new HyperlinkLabel("[Link]");
303303
hyperlinkLabel.setOnAction(event -> {
304-
Hyperlink link = (Hyperlink)event.getSource();
305-
final String str = link == null ? "" : link.getText();
306-
if ("Link".equals(str)) {
304+
if (event.getSource() == hyperlinkLabel) {
307305
Project p = new Project();
308306
p.setInformation("test");
309307
// System.out.println("Link clicked: " + p.toString());

0 commit comments

Comments
 (0)