Swing JTable
I've been working hard these days, and I almost have an usable version of PennyBank. Right now, users are able to create and delete users and accounts, operate with those accounts (deposit, withdraw and transfer), displaying account operations, and importing movements from Cashbox PList files.
I will provide with some screen-shots as soon as possible, but today I wanted to talk about Swing JTables and their TableModel property. Tables are great tools when you need to display a collection of data, so you can arrange it in rows (one row per element in the collection) and columns (one column per attribute in the element).
JTables are quite easy to use. You need to declare the table itself, give it a model, and display it in your panel. Depending on the model you choose, you can edit the table's cells, you can display the elements according to their type...
Even when Sun's tutorial is nice enough to have the basic necessities solved, these three articles I found on InformIT are very good pointing at the changes you may probably want to do with your tables:
Now, I still have to give my table the OS X standard Look & Feel, painting even and odd rows with different colors each one. This link provides some good steps to accomplish that task.