public class Label
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

Label is a non-editable text control. A Label is useful for displaying text that is required to fit within a specific space, and thus may need to use an ellipsis or truncation to size the string to fit. Labels also are useful in that they can have mnemonics which, if used, will send focus to the Control listed as the target of the labelFor property.

Label sets focusTraversable to false.

Example:

Label label = new Label("a label");

extends Labeled

Since:  JavaFX 2.0