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

In textField some text after scrolling became unselectable.

    XMLWordPrintable

Details

    Description

      package bugsverifying;

      import javafx.application.Application;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      /**
       *
       * @author alexandr_kirov
       */
      public class Main extends Application{
         
          public static void main(String[] args) {
              launch(Main.class, args);
          }

          private Parent getContent() {

              VBox list=new VBox();
              TextField box= new TextField("Helloooo world!!!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab");
              //box.setPrefColumnCount(5);
              box.setMaxWidth(50);
              box.setPrefWidth(50);
              box.setMinWidth(50);
              list.getChildren().addAll(box);
              return list;
          }

          public void start(Stage stage) {
              stage.setX(100);
              stage.setY(100);
              Scene scene = new Scene(getContent());
              stage.setScene(scene);
              stage.show();
          }
      }

      It is impossible to select text "aaaaa.......aaaaa" when text is scrolled to the right end BY MOUSE. But it can be selected using shift+left/right keys combinations.

      Attachments

        Activity

          People

            rbair Richard Bair (Inactive)
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: