You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a JavaFX application that is no longer showing/working properly the window (the controls are missing and do not react) after updating the plugin from 0.0.14 to 0.1.0.
The "funny" part is that it works fine for gradle run but it shows those strange effects after creating an executable with gradle jpackage.
with gradle run the app (after launching) looks like this.
after gradle jpackage the app (after launching) looks like this.
When resizing/moving the window around it looks somewhat correct but the controls behave and look strangely (see for example Tab Headers etc) or buttons are not visible where they should be...
I am not entirely sure what causes the problem. What i noticed is that it depends a bit on the modules that are used in JavaFX. modules = ['javafx.base', 'javafx.graphics', 'javafx.controls'] seems to work while modules = ['javafx.controls', 'javafx.swing', 'javafx.fxml', 'javafx.media', 'javafx.web'] causes the strange behavior.
I tried to look into #154 also but didn't find a solution that works.
How can I detect the issue.. since it is difficult to get some output after jpackage.
Any hint/tip is appreciated. Thanks!
Note: it might be similar to #166 but I don't think so. The app starts fine, no errors or such...
The text was updated successfully, but these errors were encountered:
The issue is that badass-runtime-plugin in combination with org.openjfx.javafxpluginv0.1.0 requires having all modules (transitive included) declared as "top-level" modules.
Hence, instead of
modules = ['javafx.controls']
you are required to put modules = ['javafx.base', 'javafx.graphics', 'javafx.controls']
I have a JavaFX application that is no longer showing/working properly the window (the controls are missing and do not react) after updating the plugin from
0.0.14
to0.1.0
.The "funny" part is that it works fine for
gradle run
but it shows those strange effects after creating an executable withgradle jpackage
.To facility testing I created a rather simple dummy project that shows similar artifacts.
The project can be found here: https://github.com/danielpeintner/Java11Test/tree/non-modular
with
gradle run
the app (after launching) looks like this.after
gradle jpackage
the app (after launching) looks like this.When resizing/moving the window around it looks somewhat correct but the controls behave and look strangely (see for example Tab Headers etc) or buttons are not visible where they should be...
I am not entirely sure what causes the problem. What i noticed is that it depends a bit on the modules that are used in JavaFX.
modules = ['javafx.base', 'javafx.graphics', 'javafx.controls']
seems to work whilemodules = ['javafx.controls', 'javafx.swing', 'javafx.fxml', 'javafx.media', 'javafx.web']
causes the strange behavior.I tried to look into #154 also but didn't find a solution that works.
How can I detect the issue.. since it is difficult to get some output after
jpackage
.Any hint/tip is appreciated. Thanks!
Note: it might be similar to #166 but I don't think so. The app starts fine, no errors or such...
The text was updated successfully, but these errors were encountered: