Building the StaffList user interface

Now that you know that database access is set up properly, you are ready to build the user interface for the StaffList application. At this point, complete keyboard sequences for standard operations are not shown. If you have forgotten how to do these standard operations, reread the ToDoList example, starting with Introduction to building your first applet.

Setting up the composite

  1. Create a new project named Data Access Example.
  2. Create a new package named DAStaffList.
  3. Create a new class as follows:

Dropping and setting beans in the Visual Composition Editor

  1. Add a title to the JFrame bean by editing its title property. In this example, change the title to Staff List.
  2. Drop two JLabel beans. Edit their properties as follows:
  3. Drop two JTextField beans. Change their names to NameTF and PositionTF, respectively.
  4. From the Database category of the beans palette, select DBNavigator palette icon a DBNavigator bean and drop it in the JFrame bean.
  5. Align and move components around until they look something like this:
    Visual components of StaffList application
  6. Save your work.