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...
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I did that using ini4J and It is working with me under only one condition : Folder path shouldn't have any space.
The Code:
Based on the comments, the folder icon that you are talking about is specified in a hidden "ini" file in the folder itself.
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.