By bloid
via today.java.net
Published: Aug 21 2008 / 23:08
Your client wants a table of his bank accounts. "Nothing fancy" -- he says -- "the account number on one column and the balance on the other." You nod professionally, say, "Sure, sir, we can do it," add a JTable to the application, create two DefaultTableCellRenderer subclasses, wire everything, and proudly ship it to your client. The next day, the phone rings. Your client now wants the table to also list some stock portfolios he has. You say, "Sure, sir, it is possible," and add your first if (obj instanceof XXX) to the balance column's renderer.
Comments
jmagiera replied ago:
Just use swingx's JXTable
Voters For This Link (13)
Voters Against This Link (1)