jtable中整个行的删除线 [英] Strikethrough for entire row in jtable

查看:82
本文介绍了jtable中整个行的删除线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个JTable,它通过mysql数据库获取它们的值.我制作了几个customcolumn渲染器,以使JTable显示需要时格式化的数据.我现在需要的是在某些行上添加删除线,具体取决于每行最后一个单元格(5)上的值是否具有特定的字符串值(例如test).删除线必须位于该行的每个单元格中,最后一个单元格除外(具有测试值).可以与其他自定义列渲染器一起使用而不会混淆吗?

I have a JTable that takes their value over a mysql data base. I made several customcolumn renderers in order the JTable to show the data formated as I need them. What I need now is to add some strikethrough over some rows depending if the value on the last cell (5) in each row has a specific string value, (test) for example. The strike through must be in each cell of the row except the last cell (that has the test value). Can it work with the other custom column renderers without anything to mix up?

谢谢!

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆