[jaxx-interest] new blog entry: "Reinventing GridBagLayout"
Ethan Nicholas
ethan at ethannicholas.com
Fri Apr 21 18:47:15 EDT 2006
Yep, all a function of Java's GUI libraries -- and yes Java has min,
max, preferred, and all that.
And eventually I will be building a visual builder using JAXX -- I just
don't feel I need to hold up the 1.0 release for a visual builder, so I
haven't tackled that particular job yet. I am instead building a more
approachably-sized application to verify that JAXX works the way I want
for "real" applications, and I'll tackle a visual builder for the next
major release (or, even better, recruit some help so I don't have to do
everything by myself...).
Ethan
Anderson, Kelly wrote:
> 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.
>
>
> _______________________________________________
> jaxx-interest mailing list
> jaxx-interest at jaxxframework.org
> http://jaxxframework.org/mailman/listinfo/jaxx-interest_jaxxframework.org
>
>
More information about the jaxx-interest
mailing list