Link Details

Link 105722 thumbnail
User 111696 avatar

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.
  • 13
  • 1
  • 1403
  • 432

Comments

Add your comment
User 309152 avatar

jmagiera replied ago:

0 votes Vote down Vote up Reply

Just use swingx's JXTable

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.