JList question - how to fire a change event when nothing has changed?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top