Chapter 14. First Swing Application, Layout, and Menus

Terms in This Chapter

  • Absolute positioning

  • Dialog

  • Helper function

  • Index

  • Layout manager

  • Main window

  • Modal

  • Separator

In the last chapter, we covered Swing with short code snippets; in this chapter, we'll build an example Swing application. Snippets are great for learning how to use an API, but to see how things really come together you need a more involved example.

We'll continue with the address book application, but we'll start off with minimal features and add more as we put the application together, gradually showing more of Java GUI programming like menus and layout managers. Before we add any features, though, we'll do a prototype in an interactive session to give you hands-on, instant gratification. ...

Get Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython 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.