jcharts in applet
Andi Setiawan <[email protected]> Thu, 16 Mar 2006 04:25:58 +0000 (UTC)
| Newsgroups | gmane.comp.krysalis.jcharts.user |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642