NetBeans HTML Editor in a JEditorPane

Again, as yesterday, without code completion, but helpful nonetheless, again for business applications where the end user might like to do a bit of HTML editing while doing other things in the application:

The nice thing is that, simply by setting the content type of the second JEditorPane to text/x-html, I can set the second JEditorPane to the content of the first, when the Evaluate button is clicked. That's all the the Evaluate button does! Aside from code completion, I noticed that code formatting also doesn't work (yet). But keyboard shortcuts, such as Ctrl-E to delete a line, work fine, as was the case in yesterday's blog entry too.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

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.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today