On each click on the button, image position would change. Image position must be predefined.
Like on the first click image position translate to a pre-defined position, on second click image position translate or move to a different pre-defined position & so on.
If you want a single line of images a horizontal Box inside a JScrollPane should do the trick. If you want to place this under your main image then you could place the JScrollPane in the SOUTH of the border layout or put both the main image and the JScrollPane strip in a vertical Box. snaptube vidmate