Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ryan Anderson   on Feb 22 In Java Category.

  
Question Answered By: Bonifaco Garcia   on Feb 22

Try using 'setListData' method.
You don't have to use removeAll().

String[] newdata = {"a","b","c","d","e","f","g"};
list.setListData(newdata);

Share: 

 
 
Didn't find what you were looking for? Find more on Changing contents of a JList variable Or get search suggestion and latest updates.


Tagged: