Monday May 13, 2013

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. 


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.


« May 2013 »