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

[TextArea] Previous char wrong at line start

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 8, 9
    • javafx

      1. Run HelloTextArea
      2. Delete all text in there
      3. Type "abcd", [enter key], "ef" (the text in the control "abcd\nef")

      4. At this point the care after "f", use left arrow to move the caret between "cd".
      5. Arrow down (the caret again will be after "f")
      6. Again use left arrow to the caret between "cd".

      Note that caret will not stop in front of "e" (it jumps), and it takes two strokes to move from after "d" to between "cd".


      Test Program:
      ---------------------------------------------------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.TextArea;
      import javafx.scene.layout.Pane;
      import javafx.stage.Stage;

      public class JDK_8090192 extends Application {
          @Override
          public void start(Stage primaryStage) throws Exception {
              TextArea txtArea = new TextArea("abcd\nef");
              txtArea.setMinSize(300, 300);

              Pane pane = new Pane();
              pane.getChildren().addAll(txtArea);

              Scene scene = new Scene(pane);
              primaryStage.setScene(scene);
              primaryStage.show();
          }
      }
      -----------------------------------------------------

            arapte Ambarish Rapte
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: