This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a GUI consisting of a JList and JButton. The JList displays text items in black. When an item is selected the background color changes to red. I want to have the color of the selected text change to white when the user clicks on the JButton. In other words, the text color for the (already) selected item should change without requiring the user to click on the text item again. Can you show me how to accomplish this? Thank you.