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

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - rosrun via ssh doesnt start a node properly -

Error C2280 mutex in a class C++ -