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

Label setAlignment does not work when in center of BorderPane

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7 64-bit, JavaFX 2.2b3 32-bit

      Description

      Put a label inside a BorderPane's center. Give the label a background color so you can see how big it is (it should take up the entire center of the BorderPane as BorderPane resizes it). The text is at the top left.

      Using setAlignment on the label should move this text to different corners of the center area of the border pane, but it doesn't work. Clearly the label has lots of empty space, so setAlignment should have some effect.

      Quote from javadoc for Labeled's alignment property: "Specifies how the text and graphic within the Labeled should be aligned when there is empty space within the Labeled."

        Attachments

          Activity

            People

            • Assignee:
              kwwong Kinsley Wong
              Reporter:
              jhendrikx John Hendrikx
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: