Section 16.11. Exercises


16.11. Exercises

1.

Use different layout managers to create of the status area of the BudgetPro main window, laying out the status information differently. Make the button and account name information left-justified, and stack the Total and Remaining labels vertically on top of each other. Do you always need to create new intermediate containers? Can you do it just with GridBagLayout?

2.

Modify the BudgetPro program so that it displays a pop-up dialog when you try to create a subaccount with more money than is available to that account.

3.

Modify the dialog used for creating subaccounts, so that it also prompts for the owner's name. This can get more complicated if you want to allow only valid user names. Instead, let any name be entered and create a User object for it.

4.

Modify the BudgetPro program and associated classes to allow for editing of the values in the accounts, so that the user can change dollar allocations. Start with the ability to edit the value in the table (custom editor).

5.

Replace the JTable (and the View Subaccount button) with a Jtree object.



    Java Application Development with Linux
    Java Application Development on Linux
    ISBN: 013143697X
    EAN: 2147483647
    Year: 2004
    Pages: 292

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net