Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

Geertjan is a DZone Zone Leader and has posted 421 posts at DZone. You can read more from them at their website. View Full User Profile

Embedded Browser in NetBeans IDE 6.8 Milestone 1

08.04.2009
Email
Views: 10106
  • submit to reddit

Back in November 2005, I blogged about blogging in NetBeans IDE... which was only possible because of a module that installed the JDIC embedded native browser into NetBeans IDE. Now, thanks to NetBeans IDE 6.8 Milestone 1, a browser based on Mozilla XULRunner is a standard part of NetBeans IDE.

Not only is this useful for NetBeans IDE users (simply use the Options window to enabled the Embedded Browser), but to NetBeans Platform developers too. For example, below I have a module that installs an explorer view with items representing a subset of DZone sites. When clicked, the relevant site opens, in the embedded browser, because that's the currently enabled browser.

The first screenshot shows some of the images from NetBeans Zone in the browser. If you can remember the Swing browser, you'll be quite impressed with this:

And here's a list of entries from NetBeans Zone, looking good too:

A question I am trying to answer for myself: "What is the minimum set of NetBeans modules that a NetBeans Platform developer needs to enable in order to support the Embedded Browser?"

On Ubuntu, I came across several issues that have already been reported, but I trust they'll be fixed in coming milestone. All the issues can be found here, feel free to add your own for issues that you encounter that haven't yet been reported!

 

AttachmentSize
embedded-browser-68-1.png108.94 KB
embedded-browser-68-2.png119.56 KB
Published at DZone with permission of its author, Geertjan Wielenga.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Jacek Furmankiewicz replied on Tue, 2009/08/25 - 9:18pm

* sigh * Now if only Swing fonts on Ubuntu didn't look like crap compared to native ones...on other platforms Swing has closed the gap, but on Linux the fonts still look unbearably ugly. Pity too, since the NetBeans Scala plugin seems much better than the Eclipse one at this point...

SOTOHIRO TERASHIMA replied on Fri, 2009/09/11 - 1:17am

Hi Geertjan Wieleng,

I am the owner of Plugin Project for OpenLaszlo and ZK on NetBeans.

Open Source RIA Project        Plugin Project on NetBeans
---------------------------------------------------------------------------
http://www.openlaszlo.org/    https://nbopenlaszlosupport.dev.java.net/
http://zkoss.org/                  http://sourceforge.net/projects/rem1/

I am intending to upgrade this plugin to "visual integrated development environment" using embedded-browser.
Both OpenLaszlo and ZK use XML based canvas.
I want to make views of this canvas and embedded-browser display simultaneously in IDE.
So,I read Vadira's "XML Multiview + Visual Library" Part1 - Part3,and NetBeans Visual Library Tutorial of you.
But I can not findout how to make this.

We need Tutorial for Multiview of XML based Canvas(XML source) and Design(Result:rendered to embedded-browser).

regards,
Sotohiro Terashima

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.