views:

734

answers:

2

I am writing an application in BlackBerry, where I want to do some custom painting at the top portion of the screen in the paint method of FullScreen and at the same time, I want a RichtextField positioned at the lower portion of the screen. I tried using setPosition methods in the Field class, but to no avail. So how do I set the position of the RichtextField that is added to the FullScreen class?

+1  A: 

The best way to position objects is to extend a Manager and use it to position and size the objects the way you want. Check the documentation for net.rim.device.api.ui.Manager and net.rim.device.api.ui.Field for information on how manager control their children.

Richard
FullScreen extends Manager, however when I tried to use setPositionChild() method, it threw an IllegalArgumentException saying that the Field is not a child. I have added the field to the FullScreen. Also I searched if I need to set it as a child, but there were no methods to do that.
Ram
+1  A: 
paracycle