On Fri, 10 Jun 2022 08:46:06 GMT, Tejesh R <t...@openjdk.org> wrote: > > Was there any reason of calling table.setFocusable(false) in clearSelect()? > > We have some focus related mach5 issues in macos that crops out > > intermittently so maybe we should get rid of that if it's not needed. I > > think just calling clearSelection() would have been enough. Can you please > > check? > > Yeah, table.setFocusable(false) is added intentionally, it is added to > disable the cell focus. After selection the focus remains in cell, so in > order to release the focus I used it. Any alternative to this is available?
Even if the focus remains in the cell, what was the problem? I guess the problem was the contents was not drawn initially and only was getting drawn if rowcell is clicked. So, before and after mouseclick, the bufferedimage contents should be same, I guess focus is irrelevant here. ------------- PR: https://git.openjdk.org/jdk/pull/9117