The folder.getIcon( ) method returns the icon of the folder.
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 folder does not exist on disk, a default blank icon is returned.
Returned value
Folder icon picture