21st Century Schizoid App
Where does the web app end and the Swing app begin
It's too easy to get hung up on the "web" part of "web apps" and "web services". So something generates HTML... so what? That doesn't mean you have to throw it as-is into a browser window. After all, HTML is structured data (better still if it's XHTML), and there's no reason that a client can't just pick through that structure (with iteration, XPath, whatever) to pull out the pieces of data it needs, and then use them in whatever way is most apporpriate for the client.
Such as, say, putting that data into a Swing GUI? Take some data from a couple different sources, mix them together and you have a mashup. Or, this being Swing, a smashup.
In the Feature Article, Web Swinging, Richard Bair introduces API's and techniques from the SwingX-WS project to help you load and use HTML and XML data in your rich Swing application. "Working with HTML and XML content in Java rich clients can be very productive. [...] Using XPath and SimpleDocument, you can easily extract data from XML documents and use this data in your Swing applications."
In Java Today, the Java.net Commons project is an effort to provide helper classes, interfaces and implementations to make working in Java simpler, combining various common utilities that have been used in other open source projects including Savant and Verge. Its tools include a type converter library (String to/from Object, String to/from Array, etc.), a type validation library, JavaBean conveniences, and more.
The 261st issue of the NetBeans Weekly Newsletter is out, with features and contests to commemorate NetBeans' eighth birthday, an announcement of NetBeans IDE 5.5 RC 1 and a poll on RC 1, results from the NetBeans debugger survey, a Flash presentation from Roumen Strobl on NetBeans' best features, and much more.
Would-be Ajax creators can get up and running with the article Introducing the Google Web Toolkit. "The Google Web Toolkit (GWT) is a unique entry among Ajax toolkits in that it is built for Java developers who may not know the latest web coding standards, but want to harness the power of Ajax. Until now, Ajax toolkits or frameworks have consisted of Javascript widget libraries and implementing them involved detailed knowledge of Javascript, HTML and CSS. With GWT's Java-centric approach, much of the pain has been removed with Swing-like creation of the front-end code, real debugging from within your favorite IDE and guaranteed cross-browser support."
Evan Summers considers closures' access to non-final local variables in today's Weblogs, and wonders if that's really what all the fuss is about. His blog Better than Good is "a follow up to The Good, The Bad and The Ugly, where i got taught that closures are more than a short-hand notation for anonymous classes, and i explore how this might be useful in Swing EDT related programming."
Vikram Goyal wonders Why are Sun's code examples such bad examples of coding?, and after illustrating some lowlights, surmises that "there is no quality control applied to Sun's code examples."
Inderjeet Singh considers the problem of How to do black-box testing for AJAX Applications? "Web developers are rushing to use AJAX in their Web applications to enhance user-experience. However, testing is a pre-requisite for creating production-quality applications. In this blog, I share my attempts on writing automated blackbox tests for the popular Web 2.0 petstore application."
In today's Forums,
sbalmos wonders whether GlassFish's SOAP implementation is too eager, in
Lazy fetching useless with SOAP?
"This is more of an architectural question... Apparently lazy fetching of an entity's relationships and collections is completely useless with SOAP, because the JAXB XML marshaller touches each of the entity's properties, and thus causing a lazy fetch. I was somewhat hoping that entities with lazy-fetching properties or collections would, somehow, just return the entity IDs of the entity / collection member entities. I have other explicit methods for retrieving those other member entities, given entity IDs. But since every property is touched, it's like everything is eagerly fetched. This can *easily* get out of control in my envisioned system, where hundreds of collection members can have parents that have hundreds of other members, etc etc etc. The classic parent/child tree problem which lazy fetching was supposed to solve."
Joshua Marinacci got an answer about shaped windows, which he reports in the thread Re: Is There A BalloonTip Component In Java?: "I just got a message back from Scott at Apple on the OSX stuff: 'Check out this example code RoundTransparentWindow/index.html. I believe what you're basically doing is creating a clear window that has a view in the shape you want.'"
In today's java.net News Headlines :
- AgileWiki 3.5.0.6
- H2 Database Engine 1.0/2006-10-10
- Apache JAMES Server 2.30rc5
- IBM Web Service Streaming Engine
- Glyph Initial Release
- ObjectLab Kit
Registered users can submit news items for the java.net News Page using our news submission form. All submissions go through an editorial review before being posted to the site. You can also subscribe to the java.net News RSS feed.
Current and upcoming Java Events :
- October 13-15 - Bay Area Software Symposium 2006
- October 18 - JUG Ancona Meeting
- October 20-22 - Greater Toronto Software Symposium 2006
- October 23-25 - The Ajax Experience: Boston
- October 24-27 - Java Training Philippines
- October 27-29 - Lone Star Software Symposium 2006: Dallas Edition
- November 3-5 - Northern Virginia Software Symposium 2006: Fall Edition
- November 10-12 - Rocky Mountain Software Symposium 2006: Fall Edition
- November 17-19 - Great Lakes Software Symposium 2006
Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.
Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive.
Where does the web app end and the Swing app begin?
- Login or register to post comments
- Printer-friendly version
- editor's blog
- 342 reads





