This example shows how to export what you draw
in a panel to any of the supported vector and bitmap formats
without drawing it on the screen.
Instead of YourPanel you should use your own panel/component.
The output formats available depend on the jar files
you add to the CLASSPATH.
This example (or your application) solely depends
on the ExportDialog class and the VectorGraphics
class (the latter only if you wish to use special
methods from this class in the paint methods).