Java Reference
In-Depth Information
2. Enter lines 392 through 409 as shown in Figure 11-36 on page 739.
Save and compile the StockTrackerDB.java source code file.
TextPad displays the listUserStocks() method (Figure 11-55). The method
returns all fields in all records sorted by symbol for a user from the
Userstocks Table.
ArrayList
object
listUserStocks()
method
SQL ORDER BY
clause
FIGURE 11-55
The StockTrackerDB class now is complete. To test the class, the code for the
GUI application, StockTracker, must be compiled and executed. The remaining
source files for the complete application, listed in Table 11-7, are provided on the
Data Disk.
Table 11-7
GUI Source Code Files for the Stock Tracker Application
FILE NAME
PROGRAM FUNCTION
STAction.java
Interface for named constants
STLogon.java
GUI for initial log on screen
StockTracker.java
GUI for stock maintenance functions, add, delete, stock list;
displays user maintenance add, delete, update, and list
buttons for administrative users only
User.java
User class definition
UserMaintFrame.java
GUI for user maintenance functions, add, delete, update,
and list users
 
Search WWH ::




Custom Search