java - Swapping values around in the view with information taken from a DAO -
To respect the requirements, I used the hack to temporarily swap a numerical ID in which the string See a related user name that represents.
To do this, I have called the DAO directly from TableModel, of course, it is not very elegant and possibly a design point is inappropriate. What will be the proper approach to achieve this?
A table model has been inquired with EDT and should never block it - hence a DAO Calling is perhaps a bad idea you can either:
- Retrieve your required information from the DAO and provide the tablemodel before showing your table.
- Dynamically load information in the background and add this table to the MODEL when data access is complete.
1 Probably the easiest option to apply.
Comments
Post a Comment