Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
import javax.swing.filechooser.*;
import javax.swing.*;
.
.
.
FileSystemView fsView = FileSystemView.getFileSystemView();
Icon fileIcon = fsView.getSystemIcon( new File ( "C:\\meineDatei.txt" ) );
private Icon getIconForExt( String ext )
{
Icon ret = null;
try
{
File tmpFile = new File( "icon." + ext );
tmpFile.createNewFile();
ret = fsView.getSystemIcon( tmpFile );
tmpFile.delete();
}
catch ( IOException ex ) {
}
return ret;
}