This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Hello Everytime I update the JTable with different number of rows, the table gets messed up. For example, if the new search has less rows than the previous one, the old rows are displyed under the new ones in a weired way! Any comment? Thank you
posted 13 years ago
Hi Fadi, tables are tricky. Here's how I solved the problem: I spent my custom table model a method called "clear()":