In my JList, there are items which are bold and not bold.
When the list contain a single bold item and at the selection time (by mouse) , the Foreground Color and BackGround Color are blue (can't read the item in the list). The setSelectionForeground method will not get effect in selected stage. --list.setSelectionForeground(Color.white);--
This issue will get when we comment the line as // listModel.addElement("Am Not Bold"); on the below java pgm.
Why this happens ? How can I add a bold item in JList without this issue ? Any other solutions for this ?