How can I get file icon automatically in my app.

2003-12-12 12:44:00 PM
I want to display files in my view.I want it display just like windows explorer and the file icon is the same .For example .exe file icon in windows is the same as my file icon in java app.
How can I do it?
thank in advance!