Summary

This chapter showed how you can use Java to create robust graphical applications. The Java2D API provides easy-to-use transformation and printing functions, enabling you to make your application come to life! The Java2D API is used by commercial packages to provide reporting and simple graphic applications. If you want to create your own reporting or graphic application, the Java2D API is one way to go.

Reflections

  • How would you compare the Java2D API’s graphical manipulation features with that of some other language?

  • Printing and painting are treated similarly in Java2D. Can you think of any disadvantages of this approach?

  • How would you change Listing 13.1 to print the title of the class in landscape orientation on paper? (Hint: java.awt.print.PageFormat ...

Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.