Java-Swing:Introduction to Swing - A GUI for the Address book assignment

From Juneday education
Jump to: navigation, search

Introduction

Address book GUI - add contact frame

This longer example shows how we could go about and write a small GUI for the AddressBook assignment. It includes Swing features such as

  • JFrame - main windows
  • LayoutManagers
  • ActionListeners
  • Using your own API from a Swing class - accessing the classes from the AddressBook assignment
  • JList
  • JTextArea
  • Jlabel
  • JTextField
  • JButton
  • Menus
    • JMenuBar
    • JMenu
    • JMenuItem

Before watching the lecture, make sure that you have a basic understanding of Swing. There are links to various tutorials under the Further reading section below.

For a quick introduction to some basic classes and concepts in the Swing framework, you can take the following chapters (in this particular order):

Teaching materials

Links

Further reading

Where to go next

  • This is currently the last page of the Swing chapters of More programming with Java (subject to change)

« PreviousBook TOC • [[|Next »]]