code: public static void setWindowShape(Window window, Shape s) {
          if (PlatformUtils.isJava6()) {
              setWindowShapeJava6(window, s);
          } else {
              setWindowShapeJava7(window, s);
          }
      }
docs: Sets the shape of a window.
  This will be done via a com.sun API and may be not available on all platforms.
  @param window to change the shape for
  @param s the new shape for the window.