tags:

views:

146

answers:

2

I want to create something like this http://flowplayer.org/tools/demos/scrollable/index.html but in Java Swing. I dont need all those effects, just scrolling of thumbnail images. Is good aproach to use toolbar and ImageIcons, and then on click load image on some JPanel. Is there any common practice for this ?

A: 

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
+2  A: 

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
Hm. that is exactly what I need. Thank you very much for your answer.
svlada