java - JLabel#setIcon in javafx -


i have swing code base, using lot of new jlabel().seticon() snippets.

i'm trying migrate app javafx, have no idea on how since there no such method using javafx label object.

any ideas?

use label setgraphic of node (like imageview). @james_d commented.

as jlabel can add "graphic" (image) constructor.

what misleading different api terminology, , abstract node child of label.


Comments

Popular posts from this blog

javascript - Access directive function from component class or template -

php - Auto increment employee ID -

python - Evaluating the next line in a For Loop while in the current iteration -