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

PromptText alignment is always left, even with the center-aligned text field.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      TextField textField = new TextField();
      textField .setPromptText("0");
      textField .setAlignment(Pos.CENTER);
      textField .setPrefColumnCount(10);

      In this case the PromptText had to follow the alignment of text

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              gstiwesjfx giovanni stiwes (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: