Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ListView selection model strange behavior

l2pMay 16 2013 — edited May 21 2013
Based on earlier advice here i implemented a custom selection model for my ListView.

When selecting the first item I want to select the first Item that meets a certain condition which is not necessarily the actual first element.
So I implemented the selectFirst() method accordingly. Now pressing the HOME button should select the first item according to my implementation.
Sadly this is not the case since the selectFirst() method is never actually called. Instead the select(int index) method is called directly with the index 0.

Why is this happening? Am i missing something?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2013
Added on May 16 2013
4 comments
530 views