简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM