instructions.html wrote: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.
Your user interface should be designed with the expectation of future functionality enhancements, and it should.
Ixus See wrote:so what is the point of creating more UIs =x
Ixus See wrote:how should I start? any good resource to read up on?
instructions.html wrote: 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.
Roel De Nijs wrote:I see you used a seperate button to view all hotels. What happens when I leave both search fields empty and hit the search button?
Roel De Nijs wrote:When you do it in my application, all valid records are returned, so no need for the extra button. But that solution is also a valid approach.
Ixus See wrote:OH! ermmm valid but the user needs to know that leaving both empty will retrieve all the records?
Ixus See wrote:what if I select "AND" operation and I leave both name and location empty, what does your design returns?
Roel De Nijs wrote:
Ixus See wrote:OH! ermmm valid but the user needs to know that leaving both empty will retrieve all the records?
You have a user guide to instruct the user
Ixus See wrote:what if I select "AND" operation and I leave both name and location empty, what does your design returns?
I don't have a seperate radio button to select and/or, just 2 search field and 1 search button
Ixus See wrote:hmmm in your opinion does my implementation meets the requirement?
Ixus See wrote:Does it mean you didn't cater for the situation where by user enter name and location and the application display all the result that match name or location?
Roel De Nijs wrote:
Ixus See wrote:hmmm in your opinion does my implementation meets the requirement?
Yes.
Ixus See wrote:Does it mean you didn't cater for the situation where by user enter name and location and the application display all the result that match name or location?
You can't do it with one search, but you can simulate it wih 2. So it's not possible to show both results in one table, but it's not true that it can't be done at all (because you can search for name or location)
Ixus See wrote:why can't do you do it in one search?
Ixus See wrote:but you won't meet the requirement of AND/OR operator.
Ixus See wrote:just refactor back to orginal implemenation! thank got there is SVN to help keep my codes version controlled!
Roel De Nijs wrote:
Ixus See wrote:just refactor back to orginal implemenation! thank got there is SVN to help keep my codes version controlled!
I don't see a reason to do so. You interpreted things your way, I my way. Both are good, so why not stick to your implementation?
OCPJP 6, OCMJD 6
Ixus See wrote:there is less coding for your way ;)
the service and MVC layer is much thinner ;)
Ixus See wrote:Now you understand why I would fail the assignment, if I didn't ask simple questions, I will be implementing everything, the code complexity itself would have cause me lots of points. I guess is also part of my job to question everything even it is logical.
and POOF! You're gone! But look, this tiny ad is still here:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|