Java - 如何更改文件夹的图标 [英] Java - How to change icon of folder
本文介绍了Java - 如何更改文件夹的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那么如何在Java(Windows系统)中更改文件夹的图标是否有类或其他因为我搜索过而且找不到任何内容...
So how do I change the icon of a folder in Java (Windows system) is there a class or something cause I have searched and I can't find anything...
推荐答案
根据评论,您正在谈论的文件夹图标在文件夹本身的隐藏ini文件中指定。
Based on the comments, the folder icon that you are talking about is specified in a hidden "ini" file in the folder itself.
你可以创建/修改文件,方法是将其作为文本,etcera读取,但使用现有的第三方Java库更简单。我使用开源 ini4j Java库取得了成功。
You could create / modify the file by reading it as text, etcera, but it is simpler to use an existing 3rd-party Java library. I've had success using the open-source ini4j Java library.
这篇关于Java - 如何更改文件夹的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文