O'Reilly logo

Java™ Drawing with Apache Batik: A Tutorial by Alexander Kolesnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text Workbench: SVG Writer

The first version of the SVG Writer is really simple. All you need is a text box to enter some text in it, a canvas to display the results of your experiments, and a button to tell the application that the text is ready to be displayed.

Figure 6.4 shows what the running application should look like.

Figure 6.4. SVG Writer, the initial version

Listing 6.5 shows the source code of the SVG Writer application.

Listing 6.5. The SVG Writer application
package com.brainysoftware.batik; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required