Java: Jlist setSelectedValue() but ignoreCase?

Instead of adding String objects to your ListModel you could write your own String wrapper and override the equals(Object o) method to be case insensitive. This might have implications for other areas of your app.

I can't see any one shot method for that but merging one or two method you can have this. Call getNextMatch() until you find the exact element and then setSelectedValue.

SetSelectedValue() is not case sensitive, Java is case sensitive. Two solutions: Use all upper or lower case in your List When selecting the value loop through the list and compare the value to the String you want to select using the equalsIgnoreCase() mehtod of String.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions