| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Sunday, February 8, 2004, at 01:35 pm, Scott Palmer wrote:
Just checking the source... the ListModel does not have a setSelectedIndex() method. Even the JList selection methods are delegated directly to the ListSelectionModel which fires the related events. It seems there is no way to avoid ListSelectionEvents.
But the ListSelectionModel has setSelectionInterval
mylist.getSelectionModel().setSelectionInterval(n, n);
would set a single selected item at index n in the list.
This makes sense...
| References: | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: Stephen Paulsen <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.