S
Sam
I have a JList control which contains a fixed set of values. Based on
external events received by the program, the program highlights a
given value (or set of values) in the JList control. To implement
this functionality, I've created a custom renderer, which highlights
the correct entry or entries in the list control when it's invoked.
So far, so good.
The problem is that I'm only able to invoke the renderer by actively
changing a value in the ListModel, which apparently fires a change
event to the listener (which must be the JList control).
Question: is there a way I can invoke the custom rederer without
updating something?
Thanks,
Sam
external events received by the program, the program highlights a
given value (or set of values) in the JList control. To implement
this functionality, I've created a custom renderer, which highlights
the correct entry or entries in the list control when it's invoked.
So far, so good.
The problem is that I'm only able to invoke the renderer by actively
changing a value in the ListModel, which apparently fires a change
event to the listener (which must be the JList control).
Question: is there a way I can invoke the custom rederer without
updating something?
Thanks,
Sam