This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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