Search code examples
javahtmlswingjavafxjeditorpane

Using JavaFX in Swing to replace jEditorPame for HTML rendering


In an application, I'm using a jEditorPane component to display formatted text (by converting the text into a HTML-file). Since the HTML-rendering of jEditorPanes is fairly poor, I'm looking for a better alternative and found this solution.

Since I have no experience with JavaFX, my question is: do I still have the same possibilities like copying text selection, HyperLink-listeners, getting sources from drag&drop operations etc. as in a jEditorPane?

I would like to figure out whether these things are also possible when I integrate a JavaFX component into my Swing application before I start re-writing major parts of my source code...

To be a little bit more specific: I'm curious about which JavaFX "component" or object I have to use in order to replace my jEditorPane. Is it a Scene?


Solution

  • yes it’s possible and more powerful. JavaFx library is some part more efficient and more flexible than swing; but it still need user’s experiences and it development is going slow for now.