From: Andi S. <and...@cb...> - 2006-03-16 04:30:16
|
I want to use jcharts inside a swing applet. As suggested, I use a BufferedImage to render the chart, and then in the paintComponents method I use drawImage to put the image into a panel. I tried putting the drawImage inside the paint method, but then the chart would only be shown when I resize the applet viewer. Using paintComponents, I managed to show the chart, but when I switched to another window, and then switch back to the applet viewer, the chart would disappear. My question is, is there any other method I should put the drawImage so that the chart wouldn't disappear after the applet viewer / browser becomes inactive ? Or maybe there is another way to put chart in the applet without using a BufferedImage ? Any help would be appreciated. Thanks, Andi |