julbaril
julbaril

Reputation: 43

Placing JavaFX Text over an image

I'm currently using javafx.scene.text.Text to add a stroke and change the text color but I need to place my text over an image in a specified X,Y position. Is there any way to do this with the javafx text I'm currently using? Or what else can I use to replicate what I do?

Upvotes: 4

Views: 2743

Answers (1)

sarcan
sarcan

Reputation: 3165

Place your ImageView in a Stackpane, and on top of the view a Group containing your Text with the according X/Y coordinates set.

Upvotes: 2

Related Questions