简体   繁体   中英

JTable with JButton as cell editor

I used a JButton as render and editor in JTable, with following problems:

  1. The JTable row is not selected when JButton clicked.
  2. When the JButton is clicked, how to get its location within JTable, in other words its columnIndex and rowIndex

Any help will be appreciated!

有关一种可能的解决方案,请参见表按钮列

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