Topic: 求助!!在jtabel中显示图标 |
Print this page |
1.求助!!在jtabel中显示图标 | Copy to clipboard |
Posted by: zhanggenrui Posted on: 2004-12-06 17:14 做个图例的表格,第一列显示String,第二列显示图标(某些行不显示为空) 不知道怎样才能显示图标?请帮一下,很急!!! |
2.Re:求助!!在jtabel中显示图标 [Re: zhanggenrui] | Copy to clipboard |
Posted by: zhanggenrui Posted on: 2004-12-06 20:02 哪位兄弟知道,急呀!!! |
3.Re:求助!!在jtabel中显示图标 [Re: zhanggenrui] | Copy to clipboard |
Posted by: kavinwang Posted on: 2004-12-06 20:44 tablemodel中有一个getClassName的方法,你重载后返回适当的类型就可以了,另外你可参考以前的帖子,已经差不多讨论过。 |
4.Re:求助!!在jtabel中显示图标 [Re: zhanggenrui] | Copy to clipboard |
Posted by: zhanggenrui Posted on: 2004-12-08 09:11 谢谢!!已经搞定,同时补充一下,getColumnName也要重载,不然标题会是默认的A,B(继承了AbstractTableModel) |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |