java - Getting current stage GraphicsDevice in JavaFX -
is possible graphicsdevice of current javafx stage?
i know able current screen via screen.getscreensforrectangle method, need graphicsdevice instead.
use screen
method, e.g. 1 of getscreensforrectangle()
, find screen
of interest. in graphicsenvironment
obtained getlocalgraphicsenvironment()
, iterate though each graphicsconfiguration
of each graphicsdevice
find devices bounds intersect bounds obtained screen.getbounds()
. there may more one. typical iteration scheme shown here.
Comments
Post a Comment