public static boolean isFullScreenSupportedByDefaultGD() {
    GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
    return gd.isFullScreenSupported();
  }
public static boolean isFullScreenSupportedByDefaultGD()