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

Content of TextArea disappears after resizing window.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u20
    • 7u45
    • javafx
    • Windows 7 64bit, JDK 7u45

      Content of TextArea disappears either after resizing the window or maximizing it. It seems that it happens when TextArea contains a lot of text and scrollbar is visible (problem doesn't appear when scrollbar is at top). I could reproduce this issue on three computers using following code (I removed text variable definition - it has about 7000 characters):

              TextArea area = new TextArea();
              area.setWrapText(true);
              area.appendText(text);

              VBox root = new VBox();
              VBox.setVgrow(area, Priority.ALWAYS);
              root.getChildren().add(area);
              Scene scene = new Scene(root, 400, 400);
              primaryStage.setScene(scene);
              primaryStage.show();

            miflemi Mick Fleming
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: