Skip to content
Snippets Groups Projects
Commit 66d9a367 authored by nathan.lhote's avatar nathan.lhote
Browse files

setup

parent 9dcb8834
No related branches found
No related tags found
No related merge requests found
......@@ -36,23 +36,23 @@ repositories {
}
dependencies {
compile "com.github.penemue:keap:0.3.0"
compile 'org.kordamp.ikonli:ikonli-javafx:11.1.0'
compile 'org.kordamp.ikonli:ikonli-fontawesome5-pack:11.1.0'
compile 'org.kordamp.ikonli:ikonli-material-pack:11.1.0'
compile 'org.codehaus.griffon:griffon-javafx:2.15.1'
compile 'org.controlsfx:controlsfx:11.0.0-RC2'
testCompile "org.junit.jupiter:junit-jupiter-api:5.4.0"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.4.0"
implementation 'org.kordamp.ikonli:ikonli-javafx:11.1.0'
implementation 'org.kordamp.ikonli:ikonli-fontawesome5-pack:11.1.0'
implementation 'org.kordamp.ikonli:ikonli-material-pack:11.1.0'
implementation 'org.codehaus.griffon:griffon-javafx:2.15.1'
implementation 'org.controlsfx:controlsfx:11.0.0-RC2'
testCompile "org.testfx:testfx-junit5:4.0.15-alpha"
testRuntime "org.testfx:openjfx-monocle:jdk-11+26"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.4.0"
testImplementation "org.testfx:testfx-junit5:4.0.15-alpha"
testRuntimeOnly "org.testfx:openjfx-monocle:jdk-11+26"
}
task(runCLI, dependsOn: 'classes', type: JavaExec) {
main = 'app.appmeteo.AppMeteoCLI'
main = 'app.foodapp.FoodAppCLI'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
args "list"
......@@ -60,7 +60,7 @@ task(runCLI, dependsOn: 'classes', type: JavaExec) {
}
application {
mainClassName = 'app.appmeteo.AppMeteo'
mainClassName = 'app.foodapp.FoodApp'
applicationDefaultJvmArgs = [
'--add-opens=javafx.base/com.sun.javafx.event=ALL-UNNAMED'
]
......
rootProject.name = 'appmeteo'
rootProject.name = 'foodapp'
package app.appmeteo;
package app.foodapp;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
......@@ -7,12 +7,12 @@ import javafx.scene.Scene;
import javafx.stage.Stage;
public class AppMeteo extends Application {
public class FoodApp extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("/app/appmeteo/view/appmeteo.fxml"));
primaryStage.setTitle("AppMeteo");
Parent root = FXMLLoader.load(getClass().getResource("/app/foodapp/view/foodapp.fxml"));
primaryStage.setTitle("FoodApp");
primaryStage.setScene(new Scene(root));
primaryStage.show();
}
......
package app.appmeteo;
package app.foodapp;
import java.util.Scanner;
public class AppMeteoCLI {
public class FoodAppCLI {
public static void main(String[] args) {
System.out.println("Welcome to the weather app");
......
......@@ -8,7 +8,7 @@ import javafx.scene.control.Label;
import java.net.URL;
import java.util.ResourceBundle;
public class AppMeteoController implements Initializable {
public class FoodAppController implements Initializable {
@FXML private Button helloWorldButton;
@FXML private Button goodByeWorldButton;
......
package app.appmeteo.model;
package app.foodapp.model;
import java.util.ArrayList;
import java.util.List;
......
......@@ -4,7 +4,7 @@
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="300.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="app.appmeteo.controller.AppMeteoController">
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="300.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.60" xmlns:fx="http://javafx.com/fxml/1" fx:controller="app.foodapp.controller.FoodAppController">
<children>
<Button fx:id="helloWorldButton" layoutX="45.0" layoutY="87.0" mnemonicParsing="false" onMouseClicked="#displayHelloWorld" text="Hello World" />
<Button fx:id="goodByeWorldButton" layoutX="175.0" layoutY="87.0" mnemonicParsing="false" onMouseClicked="#goodByeWorld" text="Good Bye World" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment