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

Not being able to focus TextArea inside TabbedPane

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.0.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      Windows 7 - 64 bits
      jdk1.7.0_01 - 32 bits
      jfx 2.0.1 - 32 bits

      Description

      I have 5 tabs, each with a TextArea inside. I open the app, I select the TextArea on the first Tab, and I write, everything's fine. When I switch to the second tab I don't seem to be able to focus on the TextArea (mouse cursor is an arrow and if I click it doesn't do anything), unless I go to the top left corner of the TextArea. It's like there's this small square, inside which I can focus the TextArea. But on the rest of the TextArea's space, I can't focus it, hence I can't write. Please let me know if you need more detail or a screenshot or whatever.

      public class TabbedApp extends Application {
          Group root = new Group();
          TabPane tabPane = new TabPane();
                  
          public void init() {
              // Prepare tab pane with set of tabs
              BorderPane borderPane = new BorderPane();
              tabPane.setPrefSize(400, 400);
              tabPane.setSide(Side.TOP);
              tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
              
              for(int i=1; i<=5; i++) {
                  final Tab t = new Tab("T" + i);
                  t.setId(""+i);
                  TextArea ta = new TextArea();
                  t.setContent(ta);
                  tabPane.getTabs().add(t);
              }
              borderPane.setCenter(tabPane);
              root.getChildren().add(borderPane);
          }
       
          @Override
          public void start(Stage primaryStage) throws Exception {
              primaryStage.setScene(new Scene(root));
              primaryStage.show();
          }
          
           public static void main(String[] args) {
              launch(args);
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                ascuccimajfx Alvaro Scuccimarra (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: