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.

376Chapter 16Getting in the Swing of Things: Designing a GUI for BudgetProbutt<strong>on</strong> and account name informati<strong>on</strong> left-justified, and stack the Totaland Remaining labels vertically <strong>on</strong> top of each other. Do you always needto create new intermediate c<strong>on</strong>tainers? Can you do it just withGridBagLayout?2. Modify the BudgetPro program so that it displays a pop-up dialog whenyou try to create a subaccount with more m<strong>on</strong>ey than is available to thataccount.3. Modify the dialog used for creating subaccounts, so that it also promptsfor the owner’s name. This can get more complicated if you want to allow<strong>on</strong>ly valid user names. Instead, let any name be entered and create a Userobject for it.4. Modify the BudgetPro program and associated classes to allow for editingof the values in the accounts, so that the user can change dollar allocati<strong>on</strong>s.Start with the ability to edit the value in the table (custom editor).5. Replace the JTable (and the View Subaccount butt<strong>on</strong>) with a JTreeobject.

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

Saved successfully!

Ooh no, something went wrong!