JList flikering
Hi ,
I have code which searches for RSS feeds over the internet and adds the results to a JList. The searching code is executed in a thread so that the user can use other parts of the application. Within the thread a DefaultListModel is used to add elements to the JList with the use of my own ListCellRenderer. However, on the screen the JList flickers and sometimes all data on the screen disappears. I think the thread is causing the problem. I execute the thread using the following code:
Thread thread =new Thread(new Runnable(){
publicvoid run(){
//I add to the JList using a DefaultListModel
}
});
thread.start();
I have tried javax.swing.invokeLater, however this freezes the application and my progress bar does not show the progress of the search using this method. Is there any other way of using threads in Swing?
Thank You,
Jas

