hi....
i wrote code to draw a graph(line) by tacking data from a file ....the code for that is here...
Now the problem is the scrollbar is not working to see complete graph when i'm giving many input values....... The here is the calling class(main) of the above code.....
the i don't how to implement this listener .....
----------------------------------------------------
i'm attaching output screen also...actually there i haven taken around 90+ input values...
Scrollbars work when the size of their child components exceed the available display say.
Try overriding getPreferredSize() in your panels (the one which paints the graphs)