I'm looking to replace an HTML editor used within a Swing based application with one based on JavaFX.
As far as I can see, there are two possible options: 1) Use the JavaFX HTML editor. While this is quite nice for the features it does have, it is still lacking several other features (e.g. insert an image, insert a table, manipulate the image or table, etc.). I am also looking to include other features such as spellcheck and the ability to support custom tags. 2) Use the JavaFX WebView component and use an embedded editor such as TinyMCE.
So what would be the best option? Has anyone enhanced the JavaFX HTML editor? Are there any "gotchas" with going with the second option? Is there a third option I should consider?
A JavaFX application can communicate with the web page in which it is embedded by using a JavaScript engine. The host web page can also communicate to embedded JavaFX applications using JavaScript.
In general, a JavaFX application will have three major components namely Stage, Scene and Nodes as shown in the following diagram.
JavaFX provides several classes in the package javafx. scene. control. To create various GUI components (controls), JavaFX supports several controls such as date picker, button text field, etc. Each control is represented by a class; you can create a control by instantiating its respective class.
You don't have to use FXML or SceneBuilder. You can simply create the objects yourself and add them to your Scene/Stage yourself. It's entirely open as to how you implement it. I've implemented a Screen Management library where it handles either FXML or manually created screens.
Defining a best option is an unanswerable question as that would depend on the application at hand.
For related info see:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With