• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLIST HELP!!!!!

 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! All,
Well I was wondering if the JList in swing allows programmers to change the color of the the items selected individually.. i.e. I am working on a Chat GUI where in I need to differentiate between ignored users and the ones that are not. I thought displaying the ignored users in one color and the rest in another color will be most user frinedly.. can some one help me with this. Has some one encountered the same situation before??
P.S. Deeksha and Daman I am really looking forward to u r help on this..
Thanx
Regds
Gautham Kasinath
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use:
setSelectionMode(MULTIPLE_INTERVAL_SELECTION );
setSelectionBackground(Color selectionBackground);
The selected items from the list will show up in the color you chose.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!