Changes between Version 5 and Version 6 of Workday20050202
- Timestamp:
- 02/01/06 10:36:16 (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Workday20050202
v5 v6 12 12 * Christiaan Fluit (aduna.biz) gave use this tip: There is a standard J2SE API for retrieving these icons: javax.swing.filechooser.FileSystemView.getIcon(File file). It returns icons for files but also for folders, file systems, etc. I don't think we use this for "real" files .... only for folders and drives, but I believe you should get the file-type-specific icons. 13 13 * look into source:trunk/gnowsis/src/org/gnowsis/data/util/InverseFiletypeMap.java to map mime-types to file extensions (helps when using the operating system services) 14 Chris' tip works: 15 {{{ 16 File f = new File(filename); 17 Icon i = javax.swing.filechooser.FileSystemView.getFileSystemView().getSystemIcon(f); 18 }}} 19 20 14 21 15 22 * look at /gnowsis-server/src/java/org/gnogno/iconservice