This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I have a JList which resides in a JScrollPane. In the list are various codes, the user can begin to type and narrow the list. As the list narrows I would like the list to resize. This was all working fine until I moved to 1.4, now it acts like it is one refresh behind. For example first I have 20 visible rows, that gets narrowed to 10, but the list still shows 20 (10 are empty), then we narrow it to 5, and the list shows 10 (5 are empty), etc. Here is my resizing code, any help would be appreciated.