use ui subpackage

This commit is contained in:
Denis-Cosmin Nutiu 2024-03-19 14:16:49 +02:00
parent fbede75a13
commit 0c345ce398
5 changed files with 8 additions and 8 deletions

View file

@ -24,8 +24,8 @@ tasks.withType(JavaCompile) {
}
application {
mainModule = 'com.nuculabs.dev.imagetagger'
mainClass = 'com.nuculabs.dev.imagetagger.HelloApplication'
mainModule = 'com.nuculabs.dev.imagetagger.ui'
mainClass = 'com.nuculabs.dev.imagetagger.ui.HelloApplication'
}
kotlin {
jvmToolchain( 17 )

View file

@ -1,4 +1,4 @@
module com.nuculabs.dev.imagetagger {
module com.nuculabs.dev.imagetagger.ui {
requires javafx.controls;
requires javafx.fxml;
requires kotlin.stdlib;
@ -8,6 +8,6 @@ module com.nuculabs.dev.imagetagger {
requires net.synedra.validatorfx;
requires org.kordamp.ikonli.javafx;
opens com.nuculabs.dev.imagetagger to javafx.fxml;
exports com.nuculabs.dev.imagetagger;
opens com.nuculabs.dev.imagetagger.ui to javafx.fxml;
exports com.nuculabs.dev.imagetagger.ui;
}

View file

@ -1,4 +1,4 @@
package com.nuculabs.dev.imagetagger
package com.nuculabs.dev.imagetagger.ui
import javafx.application.Application
import javafx.fxml.FXMLLoader

View file

@ -1,4 +1,4 @@
package com.nuculabs.dev.imagetagger
package com.nuculabs.dev.imagetagger.ui
import javafx.fxml.FXML
import javafx.scene.control.Label

View file

@ -6,7 +6,7 @@
<?import javafx.scene.control.Button?>
<VBox alignment="CENTER" spacing="20.0" xmlns:fx="http://javafx.com/fxml"
fx:controller="com.nuculabs.dev.imagetagger.HelloController">
fx:controller="com.nuculabs.dev.imagetagger.ui.HelloController">
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
</padding>