Java Reference
In-Depth Information
and, at the bottom of the window, some buttons—one for creating new ac-
counts and one for viewing subaccounts. Of course, we'll also need a button to
close or exit the application. In order to move back up from a subaccount, we'll
add a button up in the header, an up-arrow, which will take us back to the
parent account.
Now we could show you a hand-drawn sketch of what this UI might look
like, from our rough description, but we'll cut to the chase and show you the
finished product. This is the GUI for the BudgetPro application, in three stages.
First comes the GUI when we first start up, with no subaccounts (Figure 16.2).
When the New Subaccount button is pressed, a dialog will appear to
collect the information need to create the subaccount, namely the new account's
name and the dollar amount to allocate to that account (Figure 16.3).
Figure 16.2 BudgetPro GUI: top account window
Figure 16.3 BudgetPro GUI: creating a (sub)account
Search WWH ::




Custom Search