-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6abfd0c
commit 70fadbc
Showing
11 changed files
with
269 additions
and
228 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
groovy/javafx-textcounter-groovy/src/main/groovy/module-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module com.example.javafxtextcountergroovy { | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
requires org.apache.groovy; | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
requires org.apache.groovy; | ||
|
||
opens com.example.javafxtextcountergroovy to javafx.fxml; | ||
|
||
opens com.example.javafxtextcountergroovy to javafx.fxml; | ||
exports com.example.javafxtextcountergroovy; | ||
} | ||
exports com.example.javafxtextcountergroovy; | ||
} |
30 changes: 15 additions & 15 deletions
30
...xtcounter/src/main/java/com/example/javafxtextcounter/FXMLFileTextCounterApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package com.example.javafxtextcounter; | ||
|
||
import java.io.IOException; | ||
import javafx.application.Application; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
|
||
import java.io.IOException; | ||
|
||
public class FXMLFileTextCounterApplication extends Application { | ||
@Override | ||
public void start(Stage stage) throws IOException { | ||
FXMLLoader fxmlLoader = new FXMLLoader( | ||
FXMLFileTextCounterApplication.class.getResource("fxml-file-text-counter.fxml"));// load FXML file | ||
// resource | ||
Scene scene = new Scene(fxmlLoader.load(), 480, 400);// set application size to 480x400 | ||
stage.setTitle("Text Counter from a File");// set the title of stage | ||
stage.setScene(scene);// set the stage to a scene | ||
stage.show();// show the stage | ||
} | ||
|
||
public static void main(String[] args) { | ||
launch();// launch the application by running the program | ||
} | ||
@Override | ||
public void start(Stage stage) throws IOException { | ||
FXMLLoader fxmlLoader = new FXMLLoader( | ||
FXMLFileTextCounterApplication.class.getResource( | ||
"fxml-file-text-counter.fxml")); // load FXML file resource | ||
Scene scene = new Scene(fxmlLoader.load(), 480, 400); // set application size to 480x400 | ||
stage.setTitle("Text Counter from a File"); // set the title of stage | ||
stage.setScene(scene); // set the stage to a scene | ||
stage.show(); // show the stage | ||
} | ||
|
||
public static void main(String[] args) { | ||
launch(); // launch the application by running the program | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
...x-textcounter/src/main/java/com/example/javafxtextcounter/FXMLTextCounterApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
package com.example.javafxtextcounter; | ||
|
||
import java.io.IOException; | ||
import javafx.application.Application; | ||
import javafx.fxml.FXMLLoader; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
|
||
import java.io.IOException; | ||
|
||
public class FXMLTextCounterApplication extends Application { | ||
@Override | ||
public void start(Stage stage) throws IOException { | ||
FXMLLoader fxmlLoader = new FXMLLoader(FXMLTextCounterApplication.class.getResource("fxml-text-counter.fxml"));// load | ||
// FXML | ||
// file | ||
// resource | ||
Scene scene = new Scene(fxmlLoader.load(), 480, 400);// set application size to 480x400 | ||
stage.setTitle("Text Counter");// set the title of stage | ||
stage.setScene(scene);// set the stage to a scene | ||
stage.show();// show the stage | ||
} | ||
|
||
public static void main(String[] args) { | ||
launch();// launch the application by running the program | ||
} | ||
} | ||
@Override | ||
public void start(Stage stage) throws IOException { | ||
FXMLLoader fxmlLoader = new FXMLLoader( | ||
FXMLTextCounterApplication.class.getResource("fxml-text-counter.fxml")); // load FXML file resource | ||
Scene scene = new Scene(fxmlLoader.load(), 480, 400); // set application size to 480x400 | ||
stage.setTitle("Text Counter"); // set the title of stage | ||
stage.setScene(scene); // set the stage to a scene | ||
stage.show(); // show the stage | ||
} | ||
|
||
public static void main(String[] args) { | ||
launch(); // launch the application by running the program | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module com.example.javafxtextcounter { | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
|
||
opens com.example.javafxtextcounter to javafx.fxml; | ||
|
||
opens com.example.javafxtextcounter to javafx.fxml; | ||
exports com.example.javafxtextcounter; | ||
} | ||
exports com.example.javafxtextcounter; | ||
} |
Oops, something went wrong.