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

A Labeled Control is one which has as part of its user interface a textual content associated with it. For example, a Button displays text, as does a Label, a Tooltip, and many other controls.

Labeled is also a convenient base class from which to extend when building new Controls which, as part of their UI, display read-only textual content.

Example of how to place a graphic above the text:

  Image image = new Image(getClass().getResourceAsStream("image.png"));
  ImageView imageView = new ImageView();
  Label label = new Label("text", imageView);

extends Control

See also:
Button, Label, ToggleButton

Since:  JavaFX 2.0