Skip navigation links

Package org.dishevelled.thumbnail.swing

Lightweight components for thumbnails.

See: Description

Package org.dishevelled.thumbnail.swing Description

Lightweight components for thumbnails. All the components in this package use ThumbnailCache for performance. The same thumbnail cache should be used for more than one component. For example,
 ThumbnailManager manager = new XdgThumbnailManager();
 ThumbnailCache cache = new ThumbnailCache(manager);

 JList<URI> list = new JList<URI>();
 list.setCellRenderer(new ThumbnailListCellRenderer(cache));
 JTable table = new JTable();
 table.setDefaultCellRenderer(URI.class, new ThumbnailTableCellRenderer(cache));

 // repaint components on reload of thumbnail images
 cache.add(list);
 cache.add(table);
 
Skip navigation links

Copyright © 2013–2019 dishevelled.org. All rights reserved.