A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Swing / AWT / SWT
how to 'refresh' a JList?
Joined: Sep 10, 2004
Oct 03, 2005 12:24:00
I have a
myJList = new
(model); //model is a
has some items that are painted (COLOR) according to a specific parameters.
The user is able to chagne a value and as a result - the color of the item should be changed accordingly.
1/1/2005 abc 2/1/2005 (this is painted in red)
1/1/2005 bbc 5/1/2005 (this is painted in green)
1/1/2005 fox 7/1/2005 (this is painted in green)
When the user changes it (say he changes the date) - i need to instruct the myJList to change the color - accordingly
will do it but I guess i was wrong.
Joined: Apr 18, 2002
Oct 13, 2005 04:08:00
how about repaint()?
I agree. Here's the link:
subject: how to 'refresh' a JList?
programmatic change of text item color in JLIst
Extracting jar file contents to JBOSS tmp directory
need help with JPanel, liseners, and referencing vectors
set background of JList
How to add a String array to JList?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015