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.
But this seems to do nothing, any help? <-- UPDATE
In fact it does something, internally it seems to have changed, but I still see the same info. For example...
I have a JScrollPane and it shows elements 4 5 and 6, when i press the button it should only show 5 but i still see 4, 5 and 6, but when i click any of them it has element 5 info like it has really changed but i need to see only 5 in the JScrollPane This is an applet, but that doesn´t change anything, right?
I have a bit of a trouble understanding the code because of the non english names
If you want to update the data in the JList use JList#setListData
If you want to show/hide the JLists (embedded inside the JScrollPane) always invoke JPanel#revalidate and JPanel#repaint after you finish adding/removing