From: Nathaniel G. A. <nat...@ya...> - 2003-08-13 18:12:18
|
The problem is the Graphics Object in your component is being invalidated because the visible area of it is changing. The parent Component is calling repaint() on your component which calls the paint( Graphics ) method on your component. You need to render your chart there. couple options here: 1) if your chart rarely changes, render it to a BufferedImage and simply draw the BufferedImage in the Components paint( Graphics ) method 2) if you want the chart to scale to fit the component size, then you will have to re-render the chart in the paint( Graphics ) method. --- Pablo Velasquez Rivas <pve...@ic...> wrote: > > Hi all ! > > Well, I'm newbie using jchart. My problem is that I'm trying to generate > a big > chart in a jpanel, and put it in a jscrollpane. Works fine. But, when I > scroll > up or down the chart, the part of the image that is hidden, do not > appear again. > > Could anybody help me ?? > > Thanks ! > > Pavel > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |