Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add bullet point to JavaFX label

Is it possible to add a bullet point to the start of a JavaFX label?

Here is basic FXML for a label

<Label fx:id="lblTerm1" text="Label" wrapText="true" VBox.vgrow="ALWAYS" />

It outputs something like this

My Name

I would like something like

  • My Name
like image 849
Gillardo Avatar asked Feb 11 '15 15:02

Gillardo


1 Answers

You can include a bullet in the text being displayed on the label using unicode character.

0x2022  8226    BULLET  •

If you are looking for something larger, you can look into this: What would be the Unicode character for big bullet in the middle of the character?

Hope this helps.

like image 140
Tanmay Patil Avatar answered Sep 28 '22 11:09

Tanmay Patil