We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

Much of the code can be eliminated if we use the ADO.DataAccessHelper library; its documentation section may help you to know if it meets your requirement. In brief, it cuts the effort to write and manage connection, command, reader etc. In addition to that, it uses DbProviderFactory, which makes it more flexible to work with different databases.


2

Overall the design of the code looks fine. Bearing in mind that this code was posted ~3 years ago and you likely have learned quite a bit since then, I have some comments about both the UI and the code. UI After adding an item, the text input value persists and the user must manually clear it. Many users would likely welcome having the value cleared after ...


0

I think I found a better architecture for my application by only using two classes, Controller and View, a swing class. So I rearranged for classes in to two. Controller: public class ClientRegistrationController implements InputDialogController { private int clientID; Client newClient = new Client(); private ClientRegistrationWindow ...


Top 50 recent answers are included