How do I get a file's icon in Java?

前端 未结 1 1517
误落风尘
误落风尘 2020-12-19 04:06

I\'m making a basic file browser and wish to display the icon of each file. Is there any way to get this?

相关标签:
1条回答
  • 2020-12-19 04:56
    Icon icon = FileSystemView.getFileSystemView().getSystemIcon( File );
    
    0 讨论(0)
提交回复
热议问题