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

New: Rendering of Java and JavaFX in the Lobo Java Web Browser

03.10.2008
Email
Views: 8381
  • submit to reddit

Today's release of the 0.98 version of the Lobo Java Web Browser contains some interesting goodies for Java and JavaFX source files—the Lobo browser can render them! Here I describe a very useful scenario where these enhancements play out very nicely.

I have been a fan of Lobo, and all that it represents, for a while now. I wrote the following articles for Javalobby some time ago, to get people up to speed with plugin development for Lobo:


I also wrote Getting Started with the Lobo Java Web Browser's Sources, which still worked for me when I set up the sources again today. Of course, you don't need the sources at all if you simply want to use the browser, as a user rather than as a developer. Now that 0.98 is out, you can open Java files (or JavaFX files) in the browser to render them. That's really cool in combination with your development environment, where you could be typing your source code in your editor, while refreshing the browser whenever you want to see how your source file will be rendered at runtime:

Imagine how cool it would be if we were to integrate the Lobo Java Web Browser into NetBeans IDE (or any other IDE). We'd be able to render our Java source files. Often enough, you're not using the Matisse GUI Builder in NetBeans IDE, for one reason or another. In those cases, there's no way of knowing what your user interface will look like at runtime, because the designer can't help you if you're not using Matisse and the Preview functionality is only available if you're using Matisse. Now, with the Lobo Java Web Browser, that will be completely possible. Hurray for Lobo!

 

AttachmentSize
rendering-java-in-lobo.png76.54 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

The Lobo Project replied on Mon, 2008/03/10 - 12:28pm

Thanks again Geertjan for your coverage of Lobo Project developments. Going forward I'd like to allow JavaFX to be a lot more web oriented in Lobo. There should soon be an API with widgets that allow straightforward creation of links, navigation buttons and "street HTML" blocks. I have posted some examples (both Java and JavaFX) here:

http://sourceforge.net/forum/forum.php?thread_id=1963582&forum_id=467019

You can just click them if you're reading that page in Lobo. Everyone is welcome to post their own Java and JavaFX URLs in that forum.

Jose

William Houghtaling replied on Mon, 2011/07/04 - 4:11am

Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} Rendering web documents can be a requirement of your application, whether you want to allow users to browse the web through your application or if you simply want to render HTML. Lobo Browser is a pure Java web browser that provides an easy-to-use API for embedding a web browser into your Java Swing applications. Unfortunately its support for complex web pages is lacking, but for simple cases it is easy and its quality is acceptable, so it is a good choice. Gauthier, Houghtaling and Williams

Comment viewing options

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