aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Do I have to supply a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Do I have to supply a "Delete" button in GUI?" Watch "Do I have to supply a "Delete" button in GUI?" New topic
Author

Do I have to supply a "Delete" button in GUI?

lambertlee Li
Ranch Hand

Joined: Dec 15, 2005
Posts: 52
In my assignment I saw the GUI requirement like this:

The user interface for this assignment must satisfy the following criteria:
It must be composed exclusively with components from the Java Foundation Classes (Swing components).
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
It must present search results in a JTable.
It must allow the user to book a selected record, updating the database file accordingly.


It said "It must allow the user to book a selected record, updating the database file accordingly", what does that "updating database file" mean?
I guess there are 3 meanings:

1)Only update the booked/unbooked field in one record
2)Allow user to update/delete a record
3)Both option 1) and 2)

Which understanding is correct? 1)? 2) ? 3)?

Could anyone give me some hints? Thanks!
Ed Tse
Ranch Hand

Joined: Sep 18, 2003
Posts: 183
I don't think you will ever delete stuffs. It's option one. Based on whether you show booked field, you have to refresh the JTable w


SCJP, Pre-SCJD (URLyBird 1.3.1), Teradata Cert'd Prof
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
You must implement all the CRUD functionality (including create and delete) in the satabase, but the client needs only to read and update unless the specs explicitly state otherwise.


42
Oliver Weikopf
Ranch Hand

Joined: Feb 17, 2004
Posts: 58
Booking means filling the owner field of a record, nothing else. So it's just updating.
[ June 20, 2006: Message edited by: Oliver Weikopf ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Do I have to supply a "Delete" button in GUI?