07-12-2012 10:06 AM
hi, how can i set a field focus by default by starting of a screen, example :
ButtonField b1, b2, b3;
b1 = new ButtonField("b1");
b2 = new ButtonField("b2");
b3 = new ButtonField("b3");
in this example the b1 is set focus by default, but i want the button b2 to be focus as first without changing the drawing ordre of buttons?
07-12-2012 10:14 AM
Actually, b2.setFocus() should be invoked in your manager's onDisplay() (probably wrapped in invokeLater - I know I'm a little too paranoid about that, but using it prevents many strange glitches).