image viewer

Hi My reqvirements are as below
Input is the address of a folder containing images
Output should be a jframe displying first image in a folder when i scroll mouse or press right arrow key then next image should be displayed Similary when i scroll back or press left key the previous omage should be diplayed on jframe

Output should be a jframe displying first image in a folder when i scroll mouse or press right arrow key then next image should be displayed Similary when i scroll back or press left key the previous omage should be diplayed on jframe