Re: need info on GUI class libraries....
From: krc (rckancharla_at_yahoo.com)
Date: 01/22/04
- Previous message: Jim Sculley: "Re: Swing JPanel Colors"
- In reply to: Karsten Lentzsch: "Re: need info on GUI class libraries...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jan 2004 21:53:45 -0800
Thanks to you all for your messages. We are currently inclined towards
using Swing. But we will definitely consider all the suggestions
mentioned in the above mails.
-krc.
Karsten Lentzsch <Karsten@JGoodies.com> wrote in message news:<bu3532$p34$03$1@news.t-online.com>...
> Patrick B. Haggood wrote:
>
> > You looking for fast implementation or most robust library? I'm using a
> > couple of simple classes from an IBM article that allows *extremely* quick
> > mockups of the GUI. If I need more control over layout later, I'll
> > probably look into one of the other frameworks mentioned here. Just be
> > careful and don't try to over-engineer a full app just to implement some
> > validations and some data entry.
> >
> > http://www.javaworld.com/javaworld/jw-10-2002/jw-1004-dialog.html
>
> The article's LabelledItemPanel makes simple things easy
> but it lays out poorly, and hard stuff remains impossible.
>
> With the default look&feel the label and component texts
> are unaligned in *every row*. And the panel won't retain
> proportions if you change the font, font size or resolution.
>
> Here's an alternative:
> FormLayout layout = new FormLayout("right:pref, 4dlu, pref");
> DefaultFormBuilder builder = new DefaultFormBuilder(layout);
> builder.setDefaultDialogBorder();
>
> builder.append("&Customer Code", customerField);
> builder.append("&Name", nameField);
> ...
> builder.append("&Email", emailField);
> return builder.getPanel();
>
> I'd say the alternative is quick too. In addition to the
> LabelledItemPanel it offers more flexiblity - if necessary.
> Label and component will be associated using #setLabelFor,
> the layout will retain proportions, you can mix it with
> any custom panel implementation, and it honors the component
> orientation left-to-right vs. right-to-left.
>
> The Forms button bar for OK, Cancel gives both buttons the same
> dimension and honors the platform's minimum size for buttons.
> The order on a PC will be "OK, Cancel", and on a Mac "Cancel, OK";
> all this just by invoking ButtonBarFactory#buildOkCancelBar
>
> Hope this helps,
> Karsten
- Previous message: Jim Sculley: "Re: Swing JPanel Colors"
- In reply to: Karsten Lentzsch: "Re: need info on GUI class libraries...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|