Summary

This chapter covered the text components provided by the AWT: textfields and textareas. We've discussed not only textfields and textareas but also taken a look at their superclass: TextComponent, which provides a number of services shared by textfields and text areas. Additionally, we've taken a short detour to discuss input validation for textfields, both exit validation and on-the-fly validation.

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition 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.