PDA

View Full Version : Question about tab Index and Focus



mark1943
19 Jan 2009, 6:54 AM
for instance, like the code below, I need to change the focus to the Button b from TextField a by press the Tab Key, but it seems not working on this way, and the focus will just go somewhere else on the browser. So, how can I make it work. and also, what is the classes name to set up the Button's view when it get focus.


TextField<String> a = new TextField<String>();
Button b = new Button("B");
a.setTabIndex(0);
b.setTabIndex(1);

Thank you!

kolli
20 Jan 2009, 7:30 AM
i think you should try starting the tab index from 1