I want to create something like this http://flowplayer.org/tools/demos/sc开发者_如何转开发rollable/index.html but in Java Swing. I don't need all those effects, just scrolling of thumbnail images. Is good approach to use toolbar and ImageIcons, and then on click load image on some JPanel. Is there any common practice for this?
Use a JPanel with a GridLayout containing a JLabel for each image. Then you can add the panel to a scrollpane. You can turn off the scrollbars so they are not visible.
You can then use the technique described in Action Map Action to create buttons to do the scrolling.
Check out Kirill Grouchnikov's Trident animation library, in particular Project Onyx, which looks like it might do what you need.
(Edit: It's probably not an out-of-the-box solution, but the library itself looks nice and you could probably adapt some of the example application to suit your needs).
精彩评论