| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
then update the UI. But not your document. And only update the UI through non-action-firing methods, i.e. JTextComponent.setText(..) or JComboBox.getModel.setSelectedItem(..)...OK. So here's the real answer : use JComboBox().getModel().setSelectedItem(..). Use JList.getListModel().setSelectedIndex(..). Buttons only fire actions on doClick(), you should using setSelected(), what's the issue there? Do you need a hidden button in the group to clear the selection, do you need to set the selected state for all of the buttons rather than running doClick() on just one, or is there some other issue??
| References: | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: "John St. Ledger" <email@hidden>) | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: Scott Palmer <email@hidden>) | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: Jim Hagen <email@hidden>) | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: Scott Palmer <email@hidden>) | |
| >Re: How to distinguish between user selection and programatic selection with ListSelectionListener (From: Jim Hagen <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.