Olá galera queria saber como pegar os icones das extenções de arquivo: tipo: bmp,jpg,zip,dll,txt, etc…
E tambem como pegar a descrição do tipo de Arquivo.
E como colocalo (o icone) na Jtable ?!
Achei um programa que faz isso:
http://www.jgoodies.com/freeware/jdiskreport/
Na Guia de Top 50/100 aperece os icones.
Quem quiser dar um conferida no programa… 
vlw
Consegui… 
Tá ai o código pra cvs…
import java.awt.GridLayout;
import java.io.File;
import javax.swing.*;
import javax.swing.filechooser.FileSystemView;
import sun.awt.shell.ShellFolder;
public class SystemIcons extends JFrame {
JLabel iconA = new JLabel("Icone 32x32");
JLabel iconB = new JLabel("Icone 16x16");
public SystemIcons() {
super("Pegando Icones");
setLayout(new GridLayout(4,1));
File file = null;
String extension = "doc";
Icon icon32 = null;
Icon icon16 = null;
try
{
// Criar um arquivo temporario
file = File.createTempFile("icon", "." + extension);
// Icone 32x32
ShellFolder shellFolder = ShellFolder.getShellFolder(file);
icon32 = new ImageIcon(shellFolder.getIcon(true));
// Icone 16x16
FileSystemView view = FileSystemView.getFileSystemView();
icon16 = view.getSystemIcon(file);
// Descrição do Tipo
iconA.setText(view.getSystemTypeDescription(file));
iconA.setIcon(icon32);
iconB.setIcon(icon16);
// Deletar arquivo temporario
file.delete();
}
catch (Exception e)
{
}
add(iconA);
add(iconB);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SystemIcons f = new SystemIcons();
f.setSize(300, 300);
f.setVisible(true);
f.setDefaultCloseOperation(EXIT_ON_CLOSE);
byte bit = (byte) 2;
System.out.println(bit);
} catch (Exception ex) {
ex.printStackTrace();
}
}
});
}
}