|
|
||
Eitan Suez's BlogJune 2005 Archivesswing layout managers and the web..Posted by eitan on June 30, 2005 at 12:31 AM | Permalink | Comments (7)so another big theme regarding the java desktop track at javaone is layout managers. looks like they're really and finally solving many of the issues that developers have had with layout management in awt/swing. indeed project matisse is receiving much attention. the current, almost defacto layout managers in swing these days are the tablelayout derivatives, namely the most excellent jgoodies forms library. this layout manager's philosophy has beauty in its simplicity: it does away with the complication of insets or margins by simply making commonplace the use of empty cells on a grid. so cells are used to both place components and as white space. the grid is very flexible and can be customized in a number of ways. the main advantage is that the layout manager listens to its child components and their size preferences. the other is the fact that you can customize alignment, fill policy, rowspan, and colspan per cell. with these simple ideas as building blocks, developers today are layout out pains in a relatively clean and painless manner. so here's where things get interesting. on the web there's been a strong movement to erradicate html tables as a layout management tool. today using html tables for this purpose is taboo. yet html by design does not even address the issue of layout management. xul by contrast does. it provides very specific provisions for alignment, fill, and layout management in general. now let's think about this for a moment: what is an html table? surprisingly it's eerily similar to the jgoodies forms layout manager: it's grid based, it observes/respects its child component preferred sizing behavior, and allows for colspan and rowspan, cell alignment, etc.. so what gives? in the swing world, the same design is a wonderful thing, embraced by all. yet on the web, the very same design is shunned. this comes to show that when people talk about "good" design or "bad" design, most of the time they're just talking about "design a la mode:" whatever is in fashion today. so the moral of this little blogpiece is: don't be swayed by temporal currents: stick to your guns, even if they happen to be unpopular "aujourd'hui." before long the currents will change again. ps: you gotta love san francisco: i'm posting this blog entry from an irish pub with free wifi (!) and a guiness by my side. swing sessions at javaone..Posted by eitan on June 29, 2005 at 12:34 PM | Permalink | Comments (4) i've been enjoying some of the desktop talks at javaone so here's a problem: the construction of swing components is an expensive operation. I believe I can fly ;-)Posted by eitan on June 23, 2005 at 08:54 AM | Permalink | Comments (1)On and off over the last few months, I've witnessed and have been a part of a very informal distributed conversation about a logo or mascot for the JUGs community[ies]. A number of JUG-affiliated developers from around the world contributed their ideas. Bruno Souza then told me about an idea that has existed in the brazilian community for close to ten years: The Java Finch. Well, now it's official: the java.net JUGs community has just announced its new mascot: Juggy the Java Finch. After a number of discussions and thoughts on the matter over a period of a few weeks, I've come to the conclusion that I could not think of a better choice, for many reasons. The mascot has been donated to all Java User Groups under the Creative Commons License. I really hope we'll start to see JUGs around the world adopt it and create their own unique, localized versions of the mascot.
| ||
|
|