文件名称:treetable

  • 所属分类:
  • 界面编程
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2008-10-13
  • 文件大小:
  • 33.14kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 李**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

用java写得一个treetable实现,可以携带用户自己的数据类。本例带有一个简单得使用例子:

1、导入到Eclipse,把package换成你自己得package

2、运行TreetableMain.java即可



这是本人参考sun公司给出得那个treetable例子写得。重大改进如下:

1、sun公司的例子可能是由于写得较早,里面重写了TreeModel和AbstractTableModel的很多方法。本人改进了它里面的TreeTableModel和TreeTableModelAdapter类,直接从TreeModel和AbstractTableModel继承,所以使代码大幅度缩短。



2、建立了TreetableUserClass抽象类,这个类专门用于存储我们自己的数据。内建递归算法和行转换方法,使一个此类的实例对应于treetable的一行。例子里面有一个很简单的此类的实现,可以直接运行。



(前面上传过一次,不过好像不成功,这里重新传一次。)-written with a treetable realized, users can bring their own data types. The cases with a simple example in the use of : 1, Introduction to the Eclipse, you package replaced two of its own package, can run TreetableMain.java this is my reference sun in the company that is written treetable example. Significant improvements are as follows : 1. Sun's example may be due to earlier written inside a rewrite of the TreeModel and AbstractTableModel many ways. I improved it and inside the TreeTableModel TreeTableModelAdapter category directly from the TreeModel and AbstractTableModel succession that's why the code greatly reduced. 2, a TreetableUserClass abstract category, the category devoted to the memory of our own data. Built - recursive algorithm and line conversion methods to make an
(系统自动生成,下载前可以参看下载内容)

下载文件列表

压缩包 : 113172201treetable.rar 列表
treetable\AbstractCellEditor.class
treetable\AbstractCellEditor.java
treetable\DefaultTreetableModel.class
treetable\DefaultTreetableModel.java
treetable\JTreetable$1.class
treetable\JTreetable$TreeTableCellEditor.class
treetable\JTreetable$TreetableCellRenderer.class
treetable\JTreetable.class
treetable\JTreetable.java
treetable\readme.txt
treetable\TableRenderDemo$1.class
treetable\TableRenderDemo$CheckBoxEditor.class
treetable\TableRenderDemo$CheckBoxRender.class
treetable\TableRenderDemo$ComboEditor.class
treetable\TableRenderDemo$MyTableModel.class
treetable\TableRenderDemo.class
treetable\TableRenderDemo.java
treetable\TreetableMain$MyObject.class
treetable\TreetableMain.class
treetable\TreetableMain.java
treetable\TreetableModel.class
treetable\TreetableModel.java
treetable\TreetableModelAdapter$1.class
treetable\TreetableModelAdapter$2.class
treetable\TreetableModelAdapter$3.class
treetable\TreetableModelAdapter.class
treetable\TreetableModelAdapter.java
treetable\TreetableUserClass.class
treetable\TreetableUserClass.java
treetable

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org