Hi,
Please review the following fix for jdk9: Bug: https://bugs.openjdk.java.net/browse/JDK-8025082 webrev: http://cr.openjdk.java.net/~psadhukhan/rajeev/8025082/webrev.00/ The highlight of selected text in JTextPane/JTextArea is lost if some other component (e.g. button clicked) gains focus. Added a method to update the selection ownership for caret when text is selected/unselected in the JTextPane/JTextArea. Regards, Rajeev Chamyal