简体   繁体   中英

Swing: JList selection gets stuck on list item

I have found this intermittent behaviour with the JList class. If you select an item in the List in the order in which the they displayed ie top to bottom there is no problem. However if you want to select items that do not lie immediately below the one you previously selected the cursor jumps to the one it wants you to select ie it gets stuck at an item in the list.

Any ideas on why this is happening?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM