Java Reference
In-Depth Information
We should change each column header to a more user friendly value. We can do
this by selecting each
tableColumn
component in the
Navigator
window, then
modifying its
headerText
property in the
Properties
window. Similarly, we can
change the table title by selecting the table component in the
Navigator
window and
modifying its
title
property.
Testing Our Application
At this point, we are ready to test the functionality we have implemented so far. We
can execute our application by right-clicking on our enterprise project and selecting
Run
. The application will be deployed and a web browser window pointing to
it's root context will be opened. If there is any data in the
CUSTOMER
table it will be
shown in the table, otherwise the message
No items found
will be displayed.
Adding Missing Functionality
Now that we are confident that our table is displaying the correct data, we need to
make some additional modifications to our application; for starters the buttons at the
bottom of the table are not yet functional. Additionally, we need to add a column
containing checkboxes so that one or more rows can be selected, and another column
containing a button to edit the data on a particular row.