> If a JTable is wrapped in JLayer and first row is selected and VK_PAGE_DOWN 
> is pressed, the last row of the table is selected instead of the next row 
> after current viewport.
> This is because table.getParent.getSize() returns the whole table size 
> whereas it should be the JViewport which size should be used to calculate the 
> "delta" to be used to scroll the table and select the row and 
> "SwingUtilities.getUnwrappedParent(table)" gets the viewport.
> 
> Tested against SwingSet2 too where it worked too.

Prasanta Sadhukhan has updated the pull request incrementally with one 
additional commit since the last revision:

  Formatting

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14614/files
  - new: https://git.openjdk.org/jdk/pull/14614/files/b74f36ab..92d46d26

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14614&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14614&range=00-01

  Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/14614.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14614/head:pull/14614

PR: https://git.openjdk.org/jdk/pull/14614

Reply via email to