public static boolean isWindowOpaque(Window window){
  if (window == null) {
    throw new NullPointerException("The window argument should not be null.");
  }
  return window.isOpaque();
}

public static boolean isWindowOpaque ( Window window ) { if ( window == null ) { throw new NullPointerException ( "The window argument should not be null." ) ; } return window . isOpaque ( ) ; }
returns whether the window is opaque or translucent .
