Geertjan's Blog

  • January 17, 2008

Visualizing HTML Files

Geertjan Wielenga
Product Manager
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.

Join the discussion

Comments ( 3 )
  • Rich Unger Thursday, January 17, 2008

    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.

  • Geertjan Thursday, January 17, 2008

    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."

  • Rich Unger Thursday, January 17, 2008

    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!

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