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 - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -