move custom control into controls package
This commit is contained in:
parent
9873616afc
commit
cdfb50f82f
3 changed files with 5 additions and 3 deletions
|
@ -13,5 +13,6 @@ module com.nuculabs.dev.imagetagger.ui {
|
|||
requires java.desktop;
|
||||
|
||||
opens com.nuculabs.dev.imagetagger.ui to javafx.fxml, javafx.graphics;
|
||||
opens com.nuculabs.dev.imagetagger.ui.controls to javafx.fxml, javafx.graphics;
|
||||
exports com.nuculabs.dev.imagetagger.ui;
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package com.nuculabs.dev.imagetagger.ui
|
||||
|
||||
import com.nuculabs.dev.imagetagger.tag_prediction.ImageTagsPrediction
|
||||
import com.nuculabs.dev.imagetagger.ui.controls.ImageTagsEntryControl
|
||||
import javafx.application.Platform
|
||||
import javafx.fxml.FXML
|
||||
import javafx.scene.control.Label
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.nuculabs.dev.imagetagger.ui
|
||||
package com.nuculabs.dev.imagetagger.ui.controls
|
||||
import javafx.fxml.FXML
|
||||
import javafx.fxml.FXMLLoader
|
||||
import javafx.scene.control.TextArea
|
||||
|
@ -30,8 +30,8 @@ class ImageTagsEntryControl
|
|||
private lateinit var predictedImageTags: TextArea
|
||||
|
||||
init {
|
||||
val resource = ImageTagsEntryControl::class.java.getResource("controls/image-tags-entry.fxml")
|
||||
logger.info("Using resource URL: $resource")
|
||||
val resource = ImageTagsEntryControl::class.java.getResource("image-tags-entry.fxml")
|
||||
logger.fine("Using resource URL: $resource")
|
||||
val fxmlLoader = FXMLLoader(resource)
|
||||
fxmlLoader.setRoot(this)
|
||||
fxmlLoader.setController(this)
|
Loading…
Reference in a new issue