How can I use "JScrollBar" to control graphics about rolling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Neo0208
    New Member
    • Jul 2008
    • 9

    #1

    How can I use "JScrollBar" to control graphics about rolling

    Create a new XYLineChart by JFreeChart.
    Use a mouse to expand graphics, and then show JScrollBar
    I can use the JScrollBar to control expand graphics moving.
    Just like JScrollPane control graphics.
    How to do that?
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    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

    Comment

    Working...