Looks fine. But it seems that this field can be removed? private static boolean isGtkSupported = false; After the fix for JDK-8150954 this field is not used.
> > Hello, > > please review the fix > > http://cr.openjdk.java.net/~azvegint/jdk/9/8165705/00/ > > for the issue > > https://bugs.openjdk.java.net/browse/JDK-8165705 > > Gtk is now default option for taking screenshots with Robot. > > -- > Thanks, > Alexander. >