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

Discussion in 'Java' started by Sam, Jul 17, 2003.

  1. Sam

    Sam Guest

    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
     
    Sam, Jul 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nevyn Twyll
    Replies:
    4
    Views:
    4,408
    Juan T. Llibre
    Mar 19, 2005
  2. Amy
    Replies:
    0
    Views:
    1,031
  3. John_Woo
    Replies:
    3
    Views:
    1,531
    Andrew Thompson
    Oct 3, 2006
  4. Mehdi Adda
    Replies:
    6
    Views:
    137
    fedzor
    Jun 14, 2008
  5. Devin Jeanpierre
    Replies:
    2
    Views:
    530
    Devin Jeanpierre
    Feb 14, 2012
Loading...

Share This Page