關于table的使用方法可以參考sun的官方網站:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
這里補充的主要是model的使用,去自定義table的format。
在DefaultTableModel 基礎上改進model。 在定義new DefaultTableModel時修改override它的內部method
部分代碼:



















|
||||||||||||||||||||||||||||||||||
關于table的使用方法可以參考sun的官方網站: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
||||||||||||||||||||||||||||||||||