O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

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

In Practice

Now that you have seen the Java2D API, we’ll enhance our ChalkTalk application using some of what you learned in this chapter.

In this section, we will add a simple printing feature to the ChalkTalk application. This feature allows the user to print the title of the course—”Introduction to Java,” for example—in large letters on a single sheet of paper. This is useful for printing signs that can be posted outside classrooms.

We will accomplish this in the following steps:

1.
Copy the project from Chapter 11, “Swing,” to create a new project.
2.
Add a pop-up menu to CoursePanel to present the printing option to the user.
3.
Add event handlers to the menu items in the pop-up menu.
4.
Implement the java.awt.Print interface in the ...

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