Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8128053

Can't tab through textfields / nodes, when one of them is invisible.

XMLWordPrintable

      Hi,

      I can't tab through text fields, when one node in the children collection is invisible.

      I expected to jump from textField1 directly to textField3, but it is not possible. The focus stays on textField1. Jumping backwards (shift + tab) doesn't work either.


      See this example:


      public class TestApp extends Application {
          public static void main(String[] args) throws Exception {
              launch(args);
          }


          public void start(Stage stage) throws Exception {

              VBox vbox = new VBox();
              TextField textField1 = new TextField();
              TextField textField2 = new TextField();
              textField2.setVisible(false);
              TextField textField3 = new TextField();
              vbox.getChildren().add(textField1);
              vbox.getChildren().add(textField2);
              vbox.getChildren().add(textField3);
              Scene scene = new Scene(vbox);

              stage.setScene(scene);
              stage.show();
          }
      }

            miflemi Mick Fleming
            cschudtjfx Christian Schudt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: