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."
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."