I'm making a basic file browser and wish to display the icon of each file. Is there any way to get this?
Icon icon = FileSystemView.getFileSystemView().getSystemIcon( File );
来源:https://stackoverflow.com/questions/4363251/how-do-i-get-a-files-icon-in-java