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:

  1. Retrieve your required information from the DAO and provide the tablemodel before showing your table.
  2. 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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -