Last active
October 4, 2018 19:22
-
-
Save eirikbakke/b85b67dae62993e3cbee51e4c9e6c214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eirikbakke.upstream.popup; | |
import java.awt.GraphicsConfiguration; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; | |
public class PrintGC { | |
public static final void main(String args[]) { | |
System.out.println(System.getProperty("java.version")); | |
for (GraphicsDevice graphicsDevice : | |
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()) | |
{ | |
final GraphicsConfiguration gc = graphicsDevice.getDefaultConfiguration(); | |
System.out.println(gc.getBounds() + " / " + gc.getDefaultTransform()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output for me is: