13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16.7 Getting Down to Cases: Designing a GUI for BudgetPro349and, at the bottom of the window, some butt<strong>on</strong>s—<strong>on</strong>e for creating new accountsand <strong>on</strong>e for viewing subaccounts. Of course, we’ll also need a butt<strong>on</strong> toclose or exit the applicati<strong>on</strong>. In order to move back up from a subaccount, we’lladd a butt<strong>on</strong> up in the header, an up-arrow, which will take us back to theparent account.Now we could show you a hand-drawn sketch of what this UI might looklike, from our rough descripti<strong>on</strong>, but we’ll cut to the chase and show you thefinished product. This is the GUI for the BudgetPro applicati<strong>on</strong>, in three stages.First comes the GUI when we first start up, with no subaccounts (Figure 16.2).When the New Subaccount butt<strong>on</strong> is pressed, a dialog will appear tocollect the informati<strong>on</strong> need to create the subaccount, namely the new account’sname and the dollar amount to allocate to that account (Figure 16.3).Figure 16.2 BudgetPro GUI: top account windowFigure 16.3 BudgetPro GUI: creating a (sub)account

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!