JList
that displays information about a list of files: each row displays a file's name and icon. Since all AbstractFile
methods are I/O bound and potentially lock-prone, it is not a good idea to call them on request from the main event thread. To work around this, the constructor can preload all the information subsequently needed by this list. This has a cost since all files will have to queried at init time, even if some are not used (displayed) afterwards. On the other hand, navigation throughout the list will be faster. Preloading can be enabled or disabled in the constructor but it should always enabled unless it is known for certain that the underlying files are not I/O bound and cannot lock.
|
|