@SuppressWarnings("unused")
int nr = 5;
TextField tf;
tf = new TextField("TextField (tabIndex 1)");
tf.setTabIndex(1);
tf.focus();
layout.addComponent(tf);
layout.addComponent(new TextField("TextField without tab index"));
layout.addComponent(new TextField("TextField without tab index"));
layout.addComponent(new TextField("TextField without tab index"));
layout.addComponent(new TextField("TextField without tab index"));