Hi, I've got a lil prob with a JList can somebody help?
Setup: My JList displays a list of items and allows multiple selections. Some, none, or all of the items (data dependent) are shown to be selected when the list is created. The user can change the selected items and save... this all works fine.
However, under certain condidtions a user may be in view-only mode so they can view any item, but can't change them. So the list is displayed, but disabled [ie. setEnabled(false)].
Problem: When the user is in a read only mode (the JList is disabled), the entire list is greyed out and I can't visually tell what is selected from what isn't. Is there a way that I can show the users that this JList is disabled AND that some of the items are still selected?
Kris McCuller
Setup: My JList displays a list of items and allows multiple selections. Some, none, or all of the items (data dependent) are shown to be selected when the list is created. The user can change the selected items and save... this all works fine.
However, under certain condidtions a user may be in view-only mode so they can view any item, but can't change them. So the list is displayed, but disabled [ie. setEnabled(false)].
Problem: When the user is in a read only mode (the JList is disabled), the entire list is greyed out and I can't visually tell what is selected from what isn't. Is there a way that I can show the users that this JList is disabled AND that some of the items are still selected?
Kris McCuller