[jaxx-interest] new blog entry: "Reinventing GridBagLayout"

Anderson, Kelly KAnderson at dentrix.com
Fri Apr 21 17:53:15 EDT 2006


ok, that sounds like what I call a grid. It is also very useful. I'm
glad to hear that you have VBox and HBox.

Do the individual widgets have a minimum, maximum and desired size? How
is the layout computed? Proportional to the maximum size of the widgets?
Or some other mechanism? 

One of the things our geometry model had was top down resizing (that is,
the user resizes the dialog) and bottom up resizing (that is, a widget
asks to have more space). Do you have that? Or is this less a function
of Jaxx, and more a function of the toolkit you are using?

You were mentioning that you wanted to create a real application to
demonstrate Jaxx' capabilities. When I was doing this sort of thing, I
created a visual layout tool using the tool itself. Also a mechanism for
creating Presentation classes, and specifying their attachment to the
GUI. Building the builder with itself, we called it. Others refer to
this as eating your own dogfood. It's great for this sort of
application.

-Kelly 

> -----Original Message-----
> In that case it sounds like it's just nested boxes -- which 
> is certainly something JAXX can do (using <VBox> and <HBox>), 
> but Table is quite different.  The point of Table is to 
> constrain rows and columns relative to each other, for 
> instance to make sure that both JTextFields start at the same 
> coordinate by putting them into the same column.
> 
> Ethan
> 
> 
> Anderson, Kelly wrote:
> > If you are self-constrained not to create a new layout 
> mechanism, then 
> > this conversation MAY be somewhat pointless.
> >
> > This boxes and glue constraint system is based on the idea 
> that every 
> > control has a minimum, maximum and desired size in both x and y.
> >
> > So, If the minimum size of Label 1 were larger than the 
> minimum size 
> > of Label 2, then you would get something like this:
> >
> >  +------------------------------------------+
> >  |+----------------------------------------+|
> >  ||+-----------------------++-------------+||
> >  |||    Label 1            || Text 1      |||
> >  ||+-----------------------++-------------+||
> >  |+----------------------------------------+|
> >  |+----------------------------------------+|
> >  ||+-------------++-----------------------+||
> >  |||    Label 2  ||           Text 2      |||
> >  ||+-------------++-----------------------+||
> >  |+----------------------------------------+|
> >  |           +--------------------+         |
> >  |           |+--------++--------+|         |
> >  |           ||   OK   || Cancel ||         |
> >  |           |+--------++--------+|         |
> >  |           +--------------------+         |
> >  +------------------------------------------+
> >





E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message.

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.




More information about the jaxx-interest mailing list