Disable tab order

Hi all,

I have quick question. Is it possible to disable tab ordering for textfield or button?

Lets say I have layout like this:
UserNameTextField → tabIndex(1);
PasswordTextField → tabIndex(2);
NewUserBtn →
disableTabOrder???

LoginBtn → tabIndex(3);

and using TAB button I don’t want to stop on NewUser Btn… is it possible?

Yes, it is possible.

Just set the tab index to a value lower then 0.

NewUserBtn.setTabIndex(-1)

Look at the javadoc for this method, is verry well explained how tabulation works.

Regards,

Éric