Java in Two Semesters by Quentin Charatan & Aaron Kans

Java in Two Semesters by Quentin Charatan & Aaron Kans

Author:Quentin Charatan & Aaron Kans
Language: eng
Format: epub
ISBN: 9783319994208
Publisher: Springer International Publishing


The Display Tenants Button

Pressing this button will display the full list of tenants (room number and name) in displayArea1 .

If all the rooms are vacant a suitable message should be displayed; otherwise the list of tenants’ rooms and names should appear under appropriate headings as can be seen in Fig. 12.2. This can be expressed in pseudocode as follows:

The Remove Tenant Button

Clicking on this button will remove the tenant whose room number has been entered in roomField1 .

As with the Add Tenant button, the room number entered must be validated; if the number is a valid one then the tenant is removed from the list (we will make use of the remove method of TenantList to do this) and a confirmation message is displayed. The pseudocode for this event-handler is given as follows:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.