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

Recommended Answers

All 2 Replies

what's the specific problem that you need help with?

Input is the address of a folder containing images

read either of these
http://docs.oracle.com/javase/tutorial/2d/images/loadimage.html
http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter06/images.html

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

read the mouselistener and mouse-Wheel listener class and tutorial from the oracle docs
http://docs.oracle.com/javase/tutorial/uiswing/events/mousewheellistener.html
http://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html

The problem he needs help with is understanding DaniWeb rules. This is a duplicate post for us to do his homework that shows no effort.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.