Closed Gernene closed 2 years ago
I'm not sure if changing the version of javafx to 11 would help -- I had encountered the same thing and got that warning as well, but resorted to specifying all the javafx stuff under dependencies such as:
dependencies {
String javaFxVersion = '11'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
}
@yusufaine Looks like that worked! Unfortunately, I'm now having a problem with text-wrapping on the dialogue box. I used the HBox.hgrow="ALWAYS"
fxml property, but it doesn't seem to work in JavaFX 11.
@Gernene is the issue similar to #112?
@yusufaine Exact same issue! I tried implementing this solution, but no success. :(
@Gernene just 2 follow-up questions:
DialogBox
constructor. Could you perhaps add a dialog.setMinHeight(Region.USE_PREF_SIZE);
around line 38 of your DialogBox.java
?dialog.setWrapText(true)
around line 38 as well?@yusufaine Still not working. :( I even tried setting a minHeight on the HBox itself.
@Gernene At a glance, I noticed that your DialogBox.fxml
has a HBox.hgrow
here as well, which I hadn't set on mine, could that be the issue?
@yusufaine Same thing. :(
@yusufaine Thank you for all the help! I finally found a workaround:
Hi everyone! My IP is pretty much working as intended, but the jar is failing smoke tests because of this warning:
I'm using MacOS and managing JavaFX with gradle. Here's my gradle.build for reference
As you can see above, I've even tried importing all the javafx module, but I'm still getting the error. Does anyone know what to do? Thank you!