posted 21 years ago
Hi,
I am not sure why I got very low score for GUI. But I would say
1. I haven�t used any component other than textfield. I think that is the main reason
2. i didn�t grouped and separated components.
Actually I provided GUI for all the services like create, update. Since all these services have many fields, and some gui like update contains, record number field, which is not something related to record data, it is a good idea to group different components.
I used same class to create the GUI for more than one services. For example I used the same class for delete, lock, read. I also used the same class for search and create. All I did was just use a different title for the window and different label for the buttons depending on the service. But I don�t know whether it affected my score anyway. I did so just reduce the number of classes. I did documented it.
I did spend a lots of time on my JTable and made sure it displays right. May be that was one reason too. Because I put a lots of restrictions on width of table cells, and JTable.
Actually I am not sure what went wrong about my GUI. But I spend a lot of time on the GUI and made sure everything displays right and tried to be consistent.
Lock
About lock I think what I did wrong was I didn�t synchronize the Collection class I used to store cookies. I did so because I felt like, it wouldn�t be a problem since no two client can access and play with a given collection element( that is the record number/cookie value pair associated with a locked record) simultaneously, because of my synchronizations at the data class. But I didn�t document that idea.
I locked based on the record object, rather than just shutting down the entire database.
I also implemented a lock manager( I called it cookie manager) at the client side to keep track of the records locked by that client.
Even though I am not at all happy with my GUI score I am happy with my overall score.
Do you think is there any way to find out what went wrong about my GUI and Lock?
Regards,
Roy.