question: private static boolean isRetina ( ) { if ( SystemInfo . isAppleJvm ) { return hasAppleRetinaDevice ( ) ; } if ( SystemInfo . isMac ) { GraphicsEnvironment e = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; GraphicsDevice [ ] devices = e . getScreenDevices ( ) ; for ( GraphicsDevice device : devices ) { if ( isOracleMacRetinaDevice ( device ) ) { return true ; } } } return false ; }
target:  Checks that at least one retina device is present. Do not use this method if your are going to make decision for a particular screen. isRetina(Graphics2D) is more preferable