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

New Developer
New Developer
Posts: 15
Registered: ‎12-03-2009
My Device: Not Specified

Focus problem between VerticalFieldManager


import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.VerticalFieldManager;

public class TestMainScreen extends MainScreen {

	public TestMainScreen() {
		VerticalFieldManager vfm = new VerticalFieldManager(FOCUSABLE);
		vfm.add(new LabelField("Hello"));

		VerticalFieldManager vfm1 = new VerticalFieldManager(FOCUSABLE);
		vfm1.add(new LabelField("Hello333333"));



My problem is focusing between two verticalfieldmanager is not happening for me. Because, i will add one or more fields to a verticalfieldmanager.


If i give FOCUSABLE for labelfield it's working fine.


I need to give focus only to verticalfieldmanager not for individual fields.


Please help me to resolve my problem.








Posts: 468
Registered: ‎08-07-2009
My Device: Curve, Bold, Storm
My Carrier: Blackberry Developer

Re: Focus problem between VerticalFieldManager



I dont think so that you can focus any manager.


You can only focus only Fields.


Or you can try the code below ...


public boolean setFocus(int x,
int y,
int status)
feel free to press the kudos button on the left side to thank the user that helped you.
please mark posts as solved if you found a solution.