@Thomas Code: /** * FileSystemView that handles some specific windows concepts. */ class WindowsFileSystemView extends FileSystemView { public boolean isFloppyDrive(File dir) { String path = dir.getAbsolutePath(); return (path != null && (path.equals("A:\\") || path.equals("B:\\"))); } } Ich find das irgendwie traurig...
/** * FileSystemView that handles some specific windows concepts. */ class WindowsFileSystemView extends FileSystemView { public boolean isFloppyDrive(File dir) { String path = dir.getAbsolutePath(); return (path != null && (path.equals("A:\\") || path.equals("B:\\"))); } }
Stichwortwolke anzeigen
Foren-Regeln