Geertjan's Blog

  • May 13, 2013

WYSIWYG Editor for Java Desktop Applications

Geertjan Wielenga
Product Manager

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. 

Join the discussion

Comments ( 3 )
  • guest Wednesday, May 15, 2013

    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

  • guest Wednesday, May 22, 2013

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

  • Carlos Delgado Friday, July 5, 2013


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

    Useful info, thanks Geertjan!


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.