Symbian
Symbian OS Library

FAQ-0729 Why do all the elements in my multiple List get selected when I call the List.setEnabled(false) method?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: AWT
Created: 08/21/2001 Modified: 09/24/2001
Number: FAQ-0729
Platform: ER5, Symbian OS v6.0

Question:
I'm developing using Java on Symbian OS v6.0. When I add a multiple selectable List to a Frame and call the List.setEnabled(false) method on the List, all the Items on the List get selected. Why is this?

Answer:
This is due to a defect in Java on Symbian OS v5 and v6.0. A possible work-around is, after calling setEnabled(false), to make a call to setMultipleMode(false) which removes the selections. Remember you will of course have to call setMultipleMode(true) when the list is to be re-enabled.

    This defect has been fixed in Symbian OS v6.1.