As per [JDK-8306119](https://bugs.openjdk.org/browse/JDK-8306119), many classes 
were updated to request Focus with a MOUSE_EVENT cause, rather than having an 
UNKNOWN cause.

However, Swingutiilites2 also request Focus without cause which can also be 
updated to show appropriate cause
Couple of SwingUtilities2 methods are updated with proper cause, which are 
called from 

https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java#L2878
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java#L2974-L2976
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java#L1064
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java#L1107
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java#L1199-L1202
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java#L4096
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java#L4132
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java#L4207-L4210
https://github.com/openjdk/jdk/blob/9a26b4af34cd3e8690c5150da232eaa8bf3a82a6/src/java.desktop/share/classes/javax/swing/JInternalFrame.java#L1430-L1432

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

Commit messages:
 - JDK-8309041: Swingutilities2 methods requesting focus can have a Cause

Changes: https://git.openjdk.org/jdk/pull/30157/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30157&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309041
  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/30157.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30157/head:pull/30157

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

Reply via email to