before cell select jtable event

后端 未结 3 1226
再見小時候
再見小時候 2021-01-12 22:54

Are there any event that is fired when cell is about to be selected? There is ListSelectionListener, but it has event that is fired only after selection has happened. I need

3条回答
  •  伪装坚强ぢ
    2021-01-12 23:36

    The only way to do this that i can think of is handle the MouseEvent and using MouseAdapters, get the coordinates and somehow to check whether the mouse pointer is hovering over a cell or not, if it is, do what you want to do. you probably have to do addMouseListener to get the effect.

提交回复
热议问题