How to retrieve stage from UI control in JavaFX
Asked Answered
D

1

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?

Dinahdinan answered 10/3, 2013 at 16:29 Comment(0)
R
8
((Stage) Control.getScene().getWindow())
Romanism answered 10/3, 2013 at 16:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.