The file.getIcon( ) method returns the icon of the file.
The optional size parameter specifies the dimensions in pixels of the returned icon. This value actually represents the length of the side of the square containing the icon. Icons are usually defined in 32x32 pixels (“large icons”) or 16x16 pixels (“small icons”). If you pass 0 or omit this parameter, the "large icon" version is returned.
If the file does not exist on disk, a default blank icon is returned.
Returned value
File icon picture