The Artima Developer Community
Sponsored Link

Java Answers Forum
how to get the icon associated with a file's extension

1 reply on 1 page. Most recent reply: Jan 7, 2005 8:08 AM by lionel Badiou

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Martin Kendel

Posts: 1
Nickname: martin55
Registered: Dec, 2004

how to get the icon associated with a file's extension Posted: Dec 29, 2004 10:48 AM
Reply to this message Reply
Advertisement
Hi all, <br>
imagine a JLabel that is a DropTarget.<br>
When dragging a file from the Explorer into that JLabel I want to show the the icon that is associated with the extension.<br>
How can I find out this icon? <br>
Do I have to search in the registry?? <br><br>
Thanks for any hint <br><br>
Regards <br>
Martin


lionel Badiou

Posts: 1
Nickname: lionelb
Registered: Jan, 2005

Re: how to get the icon associated with a file's extension Posted: Jan 7, 2005 8:08 AM
Reply to this message Reply
Hello Martin,

Unfortunately, that makes sense to dig the Window's registry to get icon file associations: that's actually the place where Windows store it ! :-)

For managing registry, I suggest you this light, clear and free package: http://www.bayequities.com/tech/Products/jreg_key.shtml

Best regards,

------------------
Lionel Badiou
CodeFutures -
Java Code Generation

http://www.codefutures.com

Flat View: This topic has 1 reply on 1 page
Topic: TRACERT Previous Topic   Next Topic Topic: Gui help in Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use