Search code examples
blackberryhorizontalfieldmanager

Swap Gridfieldmanager on button click


I have an application that I am building for blackberry OS 6.

I have a screen made of a Gridfieldmanager and a Horizontalfieldmanager. The Horizontalfieldmanager contains 4 image buttons along the bottom, when these are clicked I want to basically swap the Gridfieldmanager with another fieldmanager. Is this possible?


Solution

  • Sure is! You can use theManager.replace(Field oldField, Field new Field) to swap them out.

    Documentation on replace