Changes between Version 5 and Version 6 of Workday20050202


Ignore:
Timestamp:
02/01/06 10:36:16 (18 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Workday20050202

    v5 v6  
    1212   * 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.  
    1313   * 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) 
     14Chris' tip works: 
     15{{{ 
     16File f = new File(filename); 
     17Icon i = javax.swing.filechooser.FileSystemView.getFileSystemView().getSystemIcon(f); 
     18}}} 
     19 
     20 
    1421 
    1522 * look at /gnowsis-server/src/java/org/gnogno/iconservice