Visualizing HTML Files

I found an interesting idea in the comments to my blog entry yesterday: dabar suggests "a netbeans plugin that can allow one to preview HTML files within Netbeans so that as I edit in Netbeans, I can click on a button and then a tab showing the preview of my HTML opens that uses the DJ component internally. Any such thing in perspective soon?"

Well, I haven't managed to get that DJ Native swing project set up on Ubuntu, but sometime ago I played around with the commercial WebRenderer embedded component. I played with it some more and ended up with something that seems to be what dabar asked for. First, as in the visualizer shown yesterday, you choose a menu item called "Visualize", in an HTML file:

And then it's opened in the IDE, using the embedded WebRenderer component:

The scenario above is totally different to the one from yesterday, because here the Visual Library API isn't used at all. Still, if you're going to visualize an HTML file, the above is probably the most useful way of doing so. Go here in the NetBeans Wiki if you want to see how seriously Sun is talking about getting an embedded component into NetBeans IDE.

By the way, the above is the Connecting to a MySQL Database tutorial, which I cannot recommend highly enough.

Comments:

I haven't played with the DJ browser component yet, but my understanding from reading their web site and some other stuff around the web is that it would have the same heavyweight/lightweight issues that the jdic integration has.

Posted by Rich Unger on January 17, 2008 at 03:22 AM PST #

Hi Rich! If you click the link above to the Wiki, you'll find these concluding thoughts near the end, which seem extremely encouraging: "During the discussions in this meeting with AWT team members Oleg and Artem, we learned that JDK7 in fact has a multiplatform (Windows, Linux and Solaris) solution for mixing heavyweight and lightweight components. We tried it and it works. I have built the RCP zip for you to try. Just download the following RCP zip, download the JDK7 (build b22 and above) and try the RCP using the --jdkhome command line option. This is the real deal - there is no separate window hosting the XULRunner. The XULRunner is actually embedded in NetBeans RCP. According to Oleg it should be possible to port it back to JDK 6 also."

Posted by Geertjan on January 17, 2008 at 03:30 AM PST #

OK, i just read through the wiki page, and I saw at the end there was discussion about HW/LW mixing in jdk7. I was particularly excited about this: "it should be possible to port it back to JDK 6 also." Here's hoping!

Posted by Rich Unger on January 17, 2008 at 03:38 AM PST #

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
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today