Summary

This chapter introduced the basics of GUI programming with Java. While Web-based development has the notable benefit of making application deployment much easier, it is difficult to create a user interface on a Web application that can approach the robustness of a GUI application developed using Swing.

We first examined the basic nature of GUI development with Java and then learned by example with a simple application that displayed a frame with some common GUI controls. We then progressed to a more complex example that provided a database table browser, allowing the user to enter a SQL query, return the results to a GUI table, and then modify the data and update the database. Our application of Java design patterns abstracted the specifics ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.