简体   繁体   English

Java缩略图视图

[英]Java Thumbnail View

Hey i want to create a thumbnail viewer, for my app, i want something similar to this. 嘿,我想为我的应用创建一个缩略图查看器,我想要类似的东西。 在此处输入图片说明

I was wondering if there is a pre-existing component that can display thumbnails (FREE), or i was considering to use a JTable, with a custom cell renderer. 我想知道是否存在一个可以显示缩略图(FREE)的预先存在的组件,或者我正在考虑使用具有自定义单元格渲染器的JTable。

What do you think, what would be the best way. 您怎么看,那是最好的方法。

It will be used to display images, keep in mind that i must be able to select individual and multiple files to perform actions on them. 它将用于显示图像,请记住,我必须能够选择单个和多个文件以对它们执行操作。

thx in advance. 提前。

A JList would probably be better than a JTable. JList可能比JTable好。 You can use a "horizontal wrap" style. 您可以使用“水平包装”样式。 You can always create a custom renderer for the list as well. 您也可以始终为列表创建自定义渲染器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM