For My Next Trick, I'll Need a Volunteer
Sign up for Swing extensibility
It's easy enough to mistake the idea of a Swing look-and-feel for a "skin" in customizable end-user applications like WinAmp. What's surprising is that this isn't a particularly apt metaphor. For one thing, L&F addresses issues that a "skin" might not care about, like the order of buttons in a dialog (which is totally different on the Mac and Windows). L&F's are large and fairly intense pieces of work whose scale and scope exceed those of skins.
That leaves open the idea of extending an L&F, not just cosmetically, but by adding some functionality that might be appropriate in a given context. This turns out to be hard because the L&F's weren't really built to be extended, leaving you with several bad options: subclass a component (at which point you're extending Swing, not the L&F), extend its UI delegate (which won't work across multiple L&F's), or do something crazy like hack the event queue.
laf-widgetproject aims to address the issues outlined above, providing a common layer that is used in third-party look-and-feel implementations that:
- Allows the UI delegate implementation of the specific look-and-feel to get the list of all extensions (widgets) available for the specific component, and subsequently instantiate and register them.
- Allows the extension writer to write the widget targeted at a specific component (such as context edit menu for the text components), without worrying about how it will be found and registered at runtime and without targeting a specific look-and-feel implementation.
The interfaces defined by laf-widget have already been implemented by several look and feels, so read along to learn how to bring new functionality to Swing at this level of the API.
In Java Today,
the JavaPosse podcast has posted the final installment of Dick Wall's lengthy interview with ComputeCycles project leader Van Simmons. In the interview, Van talks extensively about the goals and concepts and uses of Jini, the proposal to make it an Apache project, and low-level details like security, Jini's configuration language, JERI, and more. The interview has been split into three parts and released as JavaPosse podcasts #82, #84, and #86.
The JavaTools incubated project NET2Java is "a new technology that helps you take an application written in Visual Basic or C# to the .NET platform, and translate it into a program written in Java source code." NET2Java translates .NET calls into corresponding Java calls, flagging calls it doesn't currently know how to translate. The process produces readable source code, preserving class names, method names and code comments.
A new SDK article takes an in-depth look at web services support in JDK 6. In Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1, Robert Eckstein and Rajiv Mordani write "one of the most exciting new features of the Java Platform, Standard Edition 6 (Java SE 6) is support for the Java API for XML Web Services (JAX-WS), version 2.0. JAX-WS 2.0 is the center of a newly rearchitected API stack for web services, which also includes Java Architecture for XML Binding (JAXB) 2.0 and SOAP with Attachments API for Java (SAAJ) 1.3."
In today's Forums,
Patrick Wright provides and update and jargon-check on Swing data-binding and data-buffering projects in
Re: JSR 295 & DataBuffer status:
"No idea about 295. DataBuffer hasn't had any big edits yet (tho Dave checked in a few things, I think). I split it off from DataBinding in order to allow it to keep developing on its own since DataBinding isn't being actively pursued anymore. DataBuffer is buildable, has tests, had demos written against it (which need to be dusted off), etc."
Joshua Marinacci considers cross-platform drawing concerns in
Re: Is There A BalloonTip Component In Java?
"This sounds great. Yes, definitely post a screenshot. How are you doing this? Using JNI to call the native method and JAWT to get a handle to the toplevel window/container handle? It would definitely need an isTranslucencySupported() method of some kind. I don't know if we should distinguish transparency and translucency at the API level. I suppose it depends on what the native platform supports. OSX and Vista should be no problem. I don't know about XP or earlier. And it seems that X is a crapshoot, depending on what the user has configured"
JohnÂ O'Conner is Fighting with NetBeans GUI Builder in today's Weblogs. "I really like NetBeans 5.5 Beta's GUI Builder. However, after fighting with it for the last 3 hours, it's time to just get up and walk away for a while... like you might do when you find yourself getting extremely frustrated with a loved one."
Get the [arti]facts: Browser image scaling, ChetÂ Haase reports:
"I've been playing around with images in servlets and applets lately ... and discovered some odd artifacts with how browsers treat images."
Projects Semplice, OpenOffice.org & PaNaSeaM: Supporting classic VB., PeteÂ Morgan takes
"a brief look at three different attempts at supporting classic VB code."
In today's java.net
News Headlines :
- Apache JAMES
of the Bouncy Castle 1.34
- Vraptor 2.2.1
- Sleep 2.1 b6
- ZK 2.1.2
- Cobra 0.95.4
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
form. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
- October 1-6 - JAOO
- October 3-4 - AjaxWorld Conference & Expo
- October 3-6 - J2EE Training Philippines
- October 6-8 - Greater Atlanta Software Symposium 2006
- October 6-8 - Open Source Live! - Bay Area
- October 11 - NL-JUG: J-Fall
- October 13-15 - Bay Area Software Symposium 2006
- 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
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
Archives and Subscriptions: This blog is delivered weekdays as
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 href="http://today.java.net/today/archive/">java.net Archive.
Sign up for Swing extensibility