import javax.swing.*;
import javax.swing.filechooser.FileSystemView;
import java.io.File; FileSystemView fsv = FileSystemView.getFileSystemView();
System.out.println(fsv.getHomeDirectory());
System.out.println(fsv.getDefaultDirectory());
System.getProperties().list(System.out);
File f = fsv.getRoots()[0];
System.out.println(f.getAbsolutePath());
Icon icon = fsv.getSystemIcon(f);
System.out.println(icon.getIconHeight());
System.out.println(icon.getIconWidth());
 
05-07 15:17