Changeset 4386
- Timestamp:
- 2003-05-28T12:37:08+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileNode.java
r4385 r4386 3 3 import java.io.File; 4 4 import java.util.*; 5 import javax.swing.*; 5 6 import javax.swing.filechooser.*; 6 7 import javax.swing.tree.*; … … 159 160 /** Retrieve the icon the system thinks should be assigned to this node. If this node has no file then the icon will be null. */ 160 161 public ImageIcon getIcon() { 161 ImageIcon icon = null; // Default icon according to tree... 162 if(file != null) { 163 Icon raw_icon = FileSystemView.getFileSystemView().getSystemIcon(file); 164 icon = new ImageIcon(raw_icon); 165 } 166 return icon; 162 return null; 167 163 } 168 164
Note:
See TracChangeset
for help on using the changeset viewer.