Ilan Mahabansky
Ilan Mahabansky

Reputation: 11

how to change the location of components in the new gui builder codenameone

I am working on the GUI in my application right now and am trying to position my components (labels, button's etc) but i cant change the location of the components. I can just change the layout to center or top but nothing else. Can someone help me with positioning my components ?

Upvotes: 1

Views: 73

Answers (1)

steve hannah
steve hannah

Reputation: 4716

Component positioning is dictated by the layout manager of the container. This may not seem as intuitive at the beginning but once you get a feel for the different layout managers that are available, it becomes easier. It sounds like your container is currently using a BorderLayout which allows you to place components in north, south, east, west, and center. The designer allows you to choose a different layout manager per container. Nesting components with different layouts will allow you to get just about any positioning effect you desire.

A good place to start is the Layout Managers section of the Developer guide.

Upvotes: 1

Related Questions