« Return to Thread: netbeans6.5で、ディスクトップアプリを作った時の困りごと

Re: netbeans6.5で、ディスクトップアプリを作った時の困りごと

by mlus-2 :: Rate this Message:

Reply to Author | View in Thread

ちょっと乱暴ですが・・・・・

JTable は、おおざっぱに分けて以下の3つから構成されています。

1.データ保存機能  TableModel
2.データ表示機能  TableCellRenderer
3.データ編集機能   TableCellEditor

今回のケースでは、
  id     int型 プライマリキー   intではなく、Integer
  date1 date型  java.util.Date ではなく java.sql.Date
構成のTableModelクラスをこしらえて、それを指定した new JTable(Model)を行ってみてはどうでしょうか。

SwingSet2 の Tableデモ が大変参考になると思います。
JDK6 になってから描画が格段に安定していますので、やりやすいと思います。

---------------------------------------------------------------------
To unsubscribe, e-mail: nbdiscuss_ja-unsubscribe@...
For additional commands, e-mail: nbdiscuss_ja-help@...

 « Return to Thread: netbeans6.5で、ディスクトップアプリを作った時の困りごと