O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

Deprecated Methods

Table 11-2 purposely leaves out deprecated methods from the original AWT. Many component methods in the original version of the AWT were named inconsistently. For example, to get the font associated with a component, you would invoke getFont(); however, to get the bounds of a component, you would invoke bounds(). As a result, it was difficult to remember which methods were preceded with get/set and which were not. Fortunately, the 1.1 release of the AWT remedied the inconsistent naming, and as a result many of the old methods are now deprecated, meaning they will no longer be supported in subsequent releases of the AWT. In fact, javac comes with a -deprecation option, which issues warnings when a deprecated method is used. ...

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