简体   繁体   中英

Rollover effect for buttons in a table?

I can add buttons to a table with TableCellRender , but those buttons look different from normal buttons, eg, when the mouse is over, there's no rollover effect. Anyone know how to make buttons in a table look and feel the same as normal buttons?

Short example provide in link which demonstrates approach on a checkbox renderer. The example extends default BooleanRenderer. The only change is getModel().setRollover(...) in getTableCellRendererComponent()

Rollover Effect in JTable Checkbox.

Hope this link help you to achieve rollover effect by implementing for your Button in Jtable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM