CSS and Swing
Separating the components that make up your view makes your Swing application more flexible, robust, and maintainable. But that's just a first step. You can also factor out the common elements that define the look for your application in the same way that CSS is used to style a web site.
Sites such as Eric Meyer's css/edge gallery show how far you can push HTML with the help of style sheets. Imagine what you could do if your designers could work out a solid look for your Swing applications and roll it out with a centrally defined style.
That's what Joshua Marinacci recommends in his java.net feature article Swing and CSS . He takes you through steps of identifying and abstracting the styling code from various Swing components. The style specific properties are then stored in an XML file that is parsed by his
The Swing and CSS themes continue in Projects and Communities. The Java Desktop community points to the latest Swing SIghtings . The current list of goodies includes ""a pirate game for the kids (Yohoho!), a crossword puzzle game for English language students, not one but two photo gallery apps for digital photo fans, a collaboration tool from "Uncle Dave Moffat", an EBay auction monitor, [and] tools for creating database applications".
The Java Tools community hosts the CSS Editor project. The project aims to provide a tool that will be able to create, add, edit, and validate CSS elements. Recent releases present the first steps of this process.
Today's new Weblog entries highlight Java on Mac OS X from a pair of Simons. Simon Phipps documents NeoOffice/J 0.7 Released . Phipps reports that Patrick Luby "has single-handedly written a highly usable front-end for the Mac OS X port of OpenOffice.org 1.0.3 [...] so that it doesn't require X11 to use. " Simon Brown's Integrating Tomcat and Apache on Mac OS X points to resources for getting Tomcat and Apache integrated and up and running (it took him 5 minutes) using a prebuilt version of mod_jk for Mac OS X.
In Also in Java Today you are invited to join the Tuesday, October 14 Java Live chat What's New in Javadoc. Join Scott Seligman and Douglas Kramer between 11 am and noon Pacific to talk about what's new in Javadocs in J2SE 1.4. Prabu Arumugam writes about parsing XML in multithreaded applications in his ONJava article XML Parsing in a Producer-Consumer Model.
In today's java.net News Headlines :
- Eclipse 3.0 Milestone 4 Released
- EJBCA 2.1 SCEP and OCSP Support
- Scarab Beta 17 Available
- SmartCVS 2.4.1
- Plumtree to Offer J2EE Version of Portal Software
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
news submission form.
All submissions go through an editorial review by news director Steve
Mallet 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 Events:
- Now - October15 ITU Telecom
- October 14 Java Live Chat: What's New in Javadoc?
- October 16-21 LISA (17th USENIX Systems Administration Conference)
- October 20-24 UML2003
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
This blog is delivered weekdays as the
href="http://today.java.net/pub/q/java_today_rss?x-ver=1.0">Java Today RSS
feed. Once this page is no longer featured as the front page of href="http://today.java.net"> Java Today it will be archived at href="http://today.java.net/today/archive/index_10142003.html">
http://today.java.net/today/archive/index_10142003.html. You can
access other past issues in the href="http://today.java.net/today/archive/">java.net Archive.