The Source for Java Technology Collaboration


Home | Changes | Index | Search | Go

FormLayoutAnswers

Can it align components across other components? For example, can it both left and right align the 'phone' text field with the 'city' text field on the other side of the two address fields? Easily. By having the components be in the same column, and having that column defined as fill and grow. That there are other components that span columns does not affect this.

Does your manager know about platform specific gaps and spacing among components. Just curious. Yes. It knows about Windows and Mac spacing out of the box. It will also reorder OK and Cancel buttons bars based on the platform.

Can the text fields, labels, etc grow and shrink when the text is localized? I don't understand the question

Just how much code do I have to write? Java code? Declarative XML? The components are placed in a grid that is defined declaratively using a Domain-specific language. The builder API saves a lot of typing.

Can I nest panels? Yes. I did so in my solution.

Can it align components along a baseline. For example, the new GroupLayout can align labels and text fields along the text baseline...that's nice. Yes. In fact, it's the default behavior.

What's the licensing? BSD

Will this work for bi-directional locales? How difficult would it be to mirror the layout for a right-to-left locale? I don't have much experience with this, but I know there is code in the builders that explicitly deals with right-to-left locales.

What else should we evaluate? One convenience that the example didn't use is that mnemonics can be associated with components automatically using the right method on the DefaultFormBuilder. There are many, many other convenience methods on the builders.

-- Main.lmfinney - 12 Oct 2006

Topic FormLayoutAnswers . { Edit | Ref-By | Printable | Diffs r1 | More }
 XML java.net RSS

Revision r1 - 12 Oct 2006 - 03:31:14 - Main.lmfinney
Parents: 3rdParty