@@ -0,0 +1,1104 @@
+package com.itmill.toolkit.tests.tickets;%0D%0A%0D%0Aimport com.itmill.toolkit.Application;%0D%0Aimport com.itmill.toolkit.ui.GridLayout;%0D%0Aimport com.itmill.toolkit.ui.TextField;%0D%0Aimport com.itmill.toolkit.ui.Window;%0D%0A%0D%0Apublic class Ticket2026 extends Application %7B%0D%0A%0D%0A    public void init() %7B%0D%0A        Window w = new Window(getClass().getSimpleName());%0D%0A        setMainWindow(w);%0D%0A%0D%0A        GridLayout layout = new GridLayout(2, 2);%0D%0A        layout.setSpacing(true);%0D%0A%0D%0A        int nr = 5;%0D%0A        TextField tf;%0D%0A        tf = new TextField(%22TextField (tabIndex 1)%22);%0D%0A        tf.setTabIndex(1);%0D%0A        tf.focus();%0D%0A        layout.addComponent(tf);%0D%0A        layout.addComponent(new TextField(%22TextField without tab index%22));%0D%0A        layout.addComponent(new TextField(%22TextField without tab index%22));%0D%0A        layout.addComponent(new TextField(%22TextField without tab index%22));%0D%0A        layout.addComponent(new TextField(%22TextField without tab index%22));%0D%0A        tf = new TextField(%22TextField (tabIndex 2)%22);%0D%0A        tf.setTabIndex(2);%0D%0A        layout.addComponent(tf);%0D%0A%0D%0A        w.setLayout(layout);%0D%0A    %7D%0D%0A%7D%0D%0A

Test case for #2026