문제

I want to get all of the list selection listeners that are registered with the selection model in my JTable, but I don't see a method to get them. Is there a way I can retrieve them?

도움이 되었습니까?

해결책

  1. use the getSelectionModel() method on a new JTable
  2. cast the result to the DefaultListSelectionModel
  3. use the getListSelectionListeners()

hope it helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top