Skip to main content

Recommended usage for multiple layouts

3 replies [Last post]
Anonymous

I'm really used to having layout without layouts to lay out user interfaces,
what's the recommended way of doing this in LWUIT?

For example, I would like to have a BorderLayout with the "North" section
set to a company logo.

The "Center" section would be a 3x3 grid with buttons found at (0, 1),
(1,0), (1, 2) and (2, 1).

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Francis De Brabandere

just do what you say :-)

set the form layout to BorderLayout,
add a Label north with it's image set
add a Container (the Lwuit Panel) in the center and set its layout tot
GridLayout(3,3);
add buttons or empty labels to the Container

On Fri, Jul 18, 2008 at 5:34 PM, Patrick Julien
wrote:
> I'm really used to having layout without layouts to lay out user interfaces,
> what's the recommended way of doing this in LWUIT?
>
> For example, I would like to have a BorderLayout with the "North" section
> set to a company logo.
>
> The "Center" section would be a 3x3 grid with buttons found at (0, 1),
> (1,0), (1, 2) and (2, 1).
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>

--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

Patrick Julien

On Fri, Jul 18, 2008 at 11:50 AM, Francis De Brabandere
wrote:

> just do what you say :-)
>
> set the form layout to BorderLayout,
> add a Label north with it's image set
> add a Container (the Lwuit Panel) in the center and set its layout tot
> GridLayout(3,3);
> add buttons or empty labels to the Container

I see, container is not abstract. So the idea is to create new instances of
a container to back the layouts.
[att1.html]

Shai Almog

> I see, container is not abstract. So the idea is to create new
> instances of a container to back the layouts.
>

Yes, please follow the examples in the tutorial and the LWUIT Demo
where such nested layouts are used.

Thanks.

Shai Almog
http://lwuit.blogspot.com/

[att1.html]