Paul Clapham wrote:Welcome to the Ranch, David!
I'm not surprised that Oracle hasn't produced a rich text editor yet. It's been clear for a while that GUI apps haven't been their priority. And then I heard that JNLP was being deprecated in Java 9. So I think you're right -- don't wait for Oracle to do anything for you in the GUI sphere.
I'm sorry not to brighten your morning.![]()
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:Can't you use a security policy to prevent the HTMLEditor from accessing the big bad Internet? Or are security policies overhauled as well right now?
John Damien Smith wrote:The best thing I know of in terms of a native rich text editor for JavaFX is the third party RichTextFX control:
https://github.com/FXMisc/RichTextFX
There is some info on that here:
http://fxexperience.com/2013/02/interview-with-tom-schindl-2/
I think the original developer stopped developing it, but it is possible that somebody else from the community picked it up.
I'm sure your research would have brought up RichTextFX, so I'm not sure why you didn't mention it in your posts.
John Damien Smith wrote:
As alternatives you could consider:
A markdown based editor (there are numerous JavaFX projects for that).
Use a SwingNode and embed a Swing based editor (such as one of the ones found in the open source Intellij or NetBeans projects), or event a SWT editor (such as the one found in Eclipse).
A WebView based solution using either the in-built JavaFX HTML editor or a third party JavaScript based rich text editor (of which there are many, many open source projects of varying quality).
John Damien Smith wrote:
I've been following JavaFX for a while, and I never heard before that such a control was due to be released in 8. I guess it may have been on some ancient roadmap somewhere, but I doubt its been in the roadmap for the core JavaFX libraries for many years (there is no published roadmap anymore as far as I know). Pretty much anything which might be on what would resemble a roadmap is likely in Jira. So you could work out a roadmap by looking at what new features are planned to be implemented in upcoming versions based upon querying Jira. I looked up rich text editor for JavaFX in jira and it came up with:
https://bugs.openjdk.java.net/browse/JDK-8091043
That feature request is not targeted for any upcoming release, so it would be unlikely to be implemented within the core JavaFX libraries at any time soon (if indeed ever).
If you have questions about it you can ask on http://mail.openjdk.java.net/mailman/listinfo/openjfx-dev.
John Damien Smith wrote:
I don't really think there is (or will be) a real replacement for JNLP. And IMO I think that is OK, as JNLP never IMO provided a good application delivery experience and never was going to ever become a good experience.
I think instead the closest thing (and it is not the same, it is different), is the self-contained application packaging:
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html
This uses native tools to bundle together an app and a runtime as a native installer package, so that the user installs your app exactly as they would any other app they install on their OS.
Or the third party Gluon mobile which (I am guessing) provides the same capabilities for mobile environments:
http://gluonhq.com/products/mobile/
John Damien Smith wrote:
> Now I am starting to realize that what Oracle wants is for us to use HTMLEditor as the base for all rich editor controls.
though RichTextFX does currently exist and (if that thing runs on Java 9), then it may prove that such an editor may be possible.
John Damien Smith wrote:
> Will they bring back the capabilities found in Swing?
Unlikely (IMO).
John Damien Smith wrote:
Yeah, I don't know, this could be a genuine issue. I'm guessing you could get around it by packaging as a self-contained app and custom hacking the core JavaFX libs to expose the APIs you need, but that doesn't really sound like a recommended approach ;-)
John Damien Smith wrote:
I don't think you really need to do that. That would only really be something that you would do if it was something that you wanted to do. Technically, there are already ways to get rich editors under the JVM, even if it may mean using a Swing or SWT based solution to get what you want (if RichTextFX or HTMLEditor or WebView based javascript coded editors are not for you).
What's that smell? I think this tiny ad may have stepped in something.
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
|