Class MultiMonitorUtil


  • public class MultiMonitorUtil
    extends java.lang.Object
    Some util functions for getting device information on multi monitor set ups
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int findScreen​(java.awt.Window w)
      Find what screen/device the window is currently on
      static java.awt.GraphicsDevice getDeviceAt​(int index)
      Returns the graphical device at given index
      static int getNumberOfScreens()
      Returns the number of devices that are currently set up in the environment
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findScreen

        public static int findScreen​(java.awt.Window w)
        Find what screen/device the window is currently on
      • getNumberOfScreens

        public static int getNumberOfScreens()
        Returns the number of devices that are currently set up in the environment
      • getDeviceAt

        public static java.awt.GraphicsDevice getDeviceAt​(int index)
        Returns the graphical device at given index