javaFXのラベルに背景画像を追加する
Add Background Image Label Javafx
Get the Label (label) manageIcon from the fxml file, and add a background to the label
@FXML private Label manageIcon //label in the fxml file, fxid:manageIcon Image image image = new Image(getClass().getResourceAsStream('manage.png'),40,40,false,false) //The picture is manage.png set to 40*40 size display manageIcon.setGraphic(new ImageView(image))
|_+_|
レンダリングは次のとおりです。
|_+_|