Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Benjen
Posts: 33
Registered: ‎05-12-2010
My Device: none
Accepted Solution

How to add a field to a defined position in a manager?

Hello programmers,

 

I need some help with something I do not understand how to do.

 

So the idea is that I have a file from which lines are read and become labels in the app, but I would like to invert the order in which they appear (the last being on top, thus). Any idea how I could achieve that?

 

Thanks for your help, won't forget kudos...!

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to add a field to a defined position in a manager?

Use .insert(...) instead of .add(...) when adding the Fields.

Contributor
Benjen
Posts: 33
Registered: ‎05-12-2010
My Device: none

Re: How to add a field to a defined position in a manager?

Perfect, I can't believe I did not see that function... Thanks Peter! :smileyhappy: