WYSIWYG Editor for Java Desktop Applications

The EPUB Open Toolbox (introduced in the last two blog entries) includes a WYSIWYG editor based on the Swing HTML Editor Framework (SHEF), but extended in small ways. For example, keyboard shortcuts can be used for bold, italics, etc.

One of the holy grails of the Java desktop world, that is, WYSIWYG support, can thus be solved via SHEF. Here's the visual pane of SHEF embedded in a NetBeans TopComponent:

And, when you switch to the Source view, the above is shown as follows in the SHEF XML editor:

If I make a change to the source and switch to the view, the view is automatically updated, and vice versa.

Would be cool to replace the editor above with the NetBeans XML Editor. On the other hand, that could have disadvantages too. Not sure how that would figure on the juice/squeeze continuum. 


Hi Geertjan, this editor would also be useful when editing the long description of a NBM module. There you can already use a subset of HTML, but it isn't WYSIWYG.

See https://netbeans.org/bugzilla/show_bug.cgi?id=152133 and vote *g*

Best regards, markiewb

Posted by guest on May 15, 2013 at 01:40 PM PDT #

Thanks this is really useful for a webdesginer like myself... Gr Martijn

Posted by guest on May 22, 2013 at 09:41 AM PDT #

It would be great to edit the help files in a NBP application within the IDE!

Useful info, thanks Geertjan!


Posted by Carlos Delgado on July 05, 2013 at 01:07 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« November 2015