Hi, Sergey.
Looks like in the updateCachedPreferredSize we should add size of
scrollbar not a rowSize, since they can be different. In this case new
invokeLater is not necessary. Also it would be good to dispose the frame
in the test.
16.01.2013 19:16, Sergey Malenkov wrote:
Hello,
This is the second version, in which the automatic test is stabilized.
I've added a lock to ensure that JavaTest does not close the window
before the test is finished.
Thanks,
SAM
On 16.01.2013 17:29, Sergey Malenkov wrote:
Hello,
Could you please review the following fix:
bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8003400
fix: http://cr.openjdk.java.net/~malenkov/8003400.0/
JTree with the large model calculates widths for visible rows only. The
problem is that the horizontal scroll bar appears after moving to the
end and hides the last row. The automatic test is included.
Thanks,
SAM
--
Best regards, Sergey.