關(guān)于table的使用方法可以參考sun的官方網(wǎng)站:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
這里補(bǔ)充的主要是model的使用,去自定義table的format。
在DefaultTableModel 基礎(chǔ)上改進(jìn)model。 在定義new DefaultTableModel時(shí)修改override它的內(nèi)部method
部分代碼:


















