RFR: 8284619: javax/swing/JTable/8236907/LastVisibleRow.java failed with "Test Case Failed!!, Last Row not Visible!!!"

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Jun 10 09:19:09 UTC 2022


On Fri, 10 Jun 2022 08:46:06 GMT, Tejesh R <tr at 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



More information about the client-libs-dev mailing list