6

The question is pretty simple, but I haven't found any examples relating to this. I want to obtain the containing Stage of a UI Control in JavaFX. Is there a way to do this?

Alvaro
  • 11,797
  • 9
  • 40
  • 57

1 Answers1

8
((Stage) Control.getScene().getWindow())
assylias
  • 321,522
  • 82
  • 660
  • 783
Alexander Kirov
  • 3,624
  • 1
  • 19
  • 23