I'm not quite sure, which part of the question you mean, but it all sound very much like homework and we're not going to do that for you. However, we'll be happy to help you with code you've already written, but you'll have to post some relevant code in that case. (Please use
[CODE] ... [/code] tags for that!)
Now, if it's the JScrollPane you don't understand, check
this howto which also has an example of how to use it with a picture.
If it's about
JFreeChart, check their
API Documentation.
If it's neither, please state your question more clearly.
Greetings,
Nepomuk