If I have a Swing Window
which is displayed across more than one monitor, how can I get either all the GraphicsDevice
s or all the GraphicsConfiguration
s on which it appears?
window.getGraphicsConfiguration()
only gets me one screen (either the one holding the largest portion of the window, or the one where the top left corner of the window resides). My ultimate goal is to be able to determine whether the window extends off of any of the screens, or overlaps taskbars/docks/menubars on any of them. This is made trickier by the possibility that a window extends beyond a taskbar to an adjoining screen, in which case overlapping the taskbar wouldn't be a problem.