apache > xml > graphics

- Home
- Tools and applications
- Using Batik
- Development

# Batik Demo

This page demonstrates the use of Batik’s JSVGCanvas swing component in a Java applet.

[Your browser doesn’t seem to support Java applets, which is required for this demo.] |
Expense | Amount
--- | ---
Shoe |
Car |
Travel |
Computer |

The applet (view source) displays the barChart.svg sample from the Batik distribution using a JSVGCanvas. Script in the web page then interacts with the applet, by calling the updateBar method of the applet object when the Update chart button is pressed. This method modifies the SVG document being displayed to update the heights of the bars.