I want to create something like this http://flowplayer.org/tools/demos/scrollable/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?
Asked
Active
Viewed 1,956 times
2 Answers
3
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.

camickr
- 321,443
- 19
- 166
- 288
1
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).

Ash
- 9,296
- 2
- 24
- 32