Jim has posted 66 posts at DZone. You can read more from them at their website. View Full User Profile

Me and You and a Dog Named Boo - Oh, Not *that* Lobo?

03.15.2008
| 7136 views |
  • submit to reddit

I suppose that I need to explain the title of this post. Lobo is a singer/songwriter from the 70's that was well-known for several songs, including "Me and You and a Dog Named Boo". Lobo also means "wolf" in Spanish. Now, thanks to Jose Solorzano and crew, Lobo is an extensible, pure Java web browser that is capable of rendering links that contain JavaFX (and Java) source code files. Jose contacted me a couple of days ago about using the code from one of my "Creating a Tetris Program in Compiled JavaFX Script" articles for demonstration purposes. Here's a screenshot of the partially baked Tetris game running in the Lobo Browser:

Lobotetris

One nice thing about this approach is that the developer doesn't have to compile the JavaFX Script source files. Rather, the Lobo browser recognizes them as JavaFX Script files, and immediately compiles and runs them. The Lobo browser download comes with a recent version of the javafxrt.jar, javafxc.jar, and Scenario JAR files, which you may recognize from previous posts as necessary to compile and run compiled JavaFX Script files. For more information on the Lobo browser, see Geertjan Wielenga's latest JavaLobby post on the subject, and check out the Lobo browser website. After installing and running the Lobo browser, navigate to the http://www.lobobrowser.org/ext/jfx/TetrisMain.fx URL, and watch it automatically render the JavaFX Script code in that URL. Nice work, Jose!

Regards,
Jim Weaver
JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications

Immediate eBook (PDF) download available at the book's Apress site

Published at DZone with permission of its author, Jim Weaver.

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

Tags:

Comments

The Lobo Project replied on Sat, 2008/03/15 - 9:34am

Thanks Jim for the post and for letting me use your app. You might have noticed not only TetrisMain.fx is in source form, but the rest of the code as well. It takes some more time to load (a JAR file would probably load faster) but it's more convenient while testing. Also, a user could presumably discover the sources and view them, the same way you can view the source of an HTML page, something that is not possible with an applet or a webstart app.

That is something that needs to be improved though. The Java Compiler API requires an implementation of a list() method that lists all files in a package. That's easy in a file system or a JAR file but not over web directories. Currently I have it look for a listing.xml file in the package directory. But that's not a very usable approach. I'll have a different approach in the next version.

Jose

Comment viewing options

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