When you bring up a Swing file chooser in Tiger with the Synth look and feel you get a perfectly blank window. Styling
JFileChooser requires bindings for scrollbars, tables, buttons, combo box, buttons, text fields and labels. Needless to say it's a rather difficult task. Despite your efforts you won't unfortunately be able to fully style it.
Many Swing components can be oriented according to your needs. Scrollbars are among the most common oriented components. Despite some support in Synth for oriented components, it is far from being exhaustive in Tiger.
Every Swing look and feel relies on properties to customize the rendering. One of these properties allows you, With
BasicLookAndFeel and therefore Metal and Ocean, to change JTree's lines style from solid to dashed:
Chase Away Those Fierce Nightmares
In Tiger and early Mustang builds, Synth falls short providing a versatile, efficient and easy to use way to load a theme. Only one method is offered to load a Synth theme, the mischievous
SynthLookAndFeel.load(). Albeit easy to use, this method suffers from critical limitations.
Synth lets you define a painter for each region of a component. A painter can be used, for instance, to draw a button's border or a tabbed pane's tabs. Here is a short example:
Every now and then we see a new blog/thread/article about JRE/JDK download size. Well, I just downloaded .NET 2.0 beta 2 and here are the file sizes:
- Runtime: 23 MB installer
- SDK: 324 MB installer (!)
Amusingly you need to install the runtime to install the SDK. That is a 347 MB installer to have a command line based framework plus its documentation.
Zoomable Image Panel
I read many Java forums and answer to a lot of questions about Java and Swing people send me by email. During the past few years, I've often seen users asking how to create a component which would let you display an image but also zoom in and out.
Synth Studio EA1
Synth Studio Early Access 1 is a package of three very simple tools I wrote to help me port existing look and feels to Synth.
SwingX, one of the SwingLabs projects, offers a very interesting set of components sitting on top of Swing. Just before JavaOne, Richard Bair and I came up with a new Swing border you can use to cast shadows around your components.
In my previous entry I talked about Wicket, a cool Java web framework (I can't stress that enough it seems :). As I was writing my praises I was almost certain someone would raise the old and annoying subject of duplicate effort.