<Swing Dev> [11] [JDK-8074286] : Add getSelectedIndices() to ListSelectionModel
Pankaj Bansal
pankaj.b.bansal at oracle.com
Fri Feb 2 17:06:37 UTC 2018
Hi All,
Please review a fix for the Enhancement. I will raise a CSR after technical evaluation.
Enhancement:
https://bugs.openjdk.java.net/browse/JDK-8074286
Webrev:
http://cr.openjdk.java.net/~pbansal/8074286/webrev.00/
The enhancement requests to add getSelectedIndices function to ListSelectionModel Interface as same function with duplicate implementation is being used in JList, JTable and DefaultTableColumnModel.
I have also added the getSelectedItemsCount function in ListSelectionModel, as this is also being used at multiple places with same implementation.
JList.getSelectedValues and JList.getSelectedValuesList are also modified to use getSelectionIndices instead of replicating the same code.
Regards,
Pankaj Bansal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20180202/2bc2c5da/attachment.html>
More information about the swing-dev
mailing list