jshell-maven-plugin
jshell-maven-plugin copied to clipboard
Running JavaFX 11 via JShell
This is a really excellent utility!
I'm investigating the possibility of iteratively developing UI's and working with other JavaFX rendered objects using JShell. Currently, when I try instantiate a javafx.stage.Stage
I get the problem of the code not running in the FX-thread. However, if I always wrap all calls within a Platform.runLater
, then I can't assign UI elements, like the stage or the buttons, to variables in the JShell workspace.
Any possibility of resolving that?
That sounds like a really interesting use case!
To clarify, you are looking into editing the source files and seeing the results live in JShell, sort of like a live reload? Does your use case work in Vanilla JShell and do you have a sample project? Thanks!
I was hoping to run this in a simple JShell; I don't have a sample project where anything like this is happening.
Background is, we were trying to play around with various UI libraries, like ControlsFX and others. We can specify maven dependencies to these very easily, but always had to resort to creating a full project and have full classes in order to test some aspect of the functionality of these types of custom controls. Things would go much faster if we could, based on the POM.xml, load those dependencies in JShell, then just throw those custom controls onto a UI and play around with the parameters "live".
Does that clarify things?