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

TextInputControl: default text alignment is top since b44

    Details

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

      java6
      fx b44
      windows 7

      Description

      To reproduce run following code

      Expected: left-center alignment

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

      public class PasswordBoxSample extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          private Parent getContent() {

              VBox list = new VBox();
              Pane pane=new Pane();
              TextField box = new TextField();
              box.setText("TextTextText");
              box.setFocusTraversable(false);
              box.setPrefHeight(300);
              pane.getChildren().add(box);
              list.getChildren().addAll(pane);
              return list;
          }

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                anazarov Andrey Nazarov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: