Font Conventions

Constant width is used for:

  • Class names and method names

  • Source code

  • Objects and packages

  • Example command-line sessions. The input you type is shown in boldface.

Italic is used for:

  • Paths and filenames

  • New terms where they are defined

  • Internet addresses, such as domain names and URLs

Boldface is used for the names of interface buttons.

Get Java 2D Graphics 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.