I was reading up on How to change an icon for one single file of the specific type? but I was wondering if this is possible with Java? I know how to change the icon of a whole file type but I'm not sure how to, or if its possible to, change the icon of one specific file.
            Asked
            
        
        
            Active
            
        
            Viewed 234 times
        
    0
            
            
        - 
                    Possible duplicate of [How to set Icon to JFrame](http://stackoverflow.com/questions/15657569/how-to-set-icon-to-jframe) – ron190 Jul 24 '16 at 11:13
- 
                    @ron190 No, not this question. OP does not want to change the icon of the application but the icon rendered for a specific file-type. – Tunaki Jul 24 '16 at 11:23
1 Answers
0
            
            
        You can use setIconImage:
frame.setIconImage(
new imageIcon(getClass().getClassLoader().getResource("image.png")));
Also check out JSmooth
 
    
    
        elgis
        
- 478
- 1
- 5
- 9
- 
                    Im asking about **other** applications, not just the one being ran. For example changing the icon of **a single** .doc – aman207 Jun 29 '14 at 21:09
 
    