Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4964
| From | Novice <novice@example..com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Strange JTable issue in Sun's Java code |
| Date | 2012-01-18 17:40 +0000 |
| Organization | Your Company |
| Message-ID | <Xns9FDE8122BF4A6jpnasty@94.75.214.39> (permalink) |
| References | (3 earlier) <jf3amd$1rr$1@dont-email.me> <Xns9FDDB0B11D330jpnasty@94.75.214.39> <jf4v54$hd0$1@dont-email.me> <jf58dl$1tf$1@dont-email.me> <Xns9FDE41905AF7jpnasty@94.75.214.39> |
Novice <novice@example..com> wrote in news:Xns9FDE41905AF7jpnasty@94.75.214.39: > Jeff Higgins <jeff@invalid.invalid> wrote in news:jf58dl$1tf$1@dont- > email.me: > >> On 01/17/2012 06:18 PM, Jeff Higgins wrote: >> >>> No rest for the weary. >> It seems that your difficulties are so far outside my experience that >> I'm not sure how to proceed. I would interested in hearing how you >> finally sort it all out. >> > > Yikes! I'm completely baffled. You seemed like you had a plan and were > heading in the right direction so I was hoping you'd figure this > enough that I could do what had to be done after that.... > > Well, I don't blame you for wanting to get back to your own work. It's > not really your problem and I've got no right to drag you into this. > Maybe I should file a bug report with Bugzilla and let Oracle figure > it out ;-) Then again, I really don't want to give them my entire > program and coming up with an SSCCE for it is something of a > problem.... > > Maybe I'll have to destroy the entire table and/or table model rather > than just deleting the rows to bypass this problem. It's a bit ugly > but might be less painful in the long run. > > I'll post a new thread back here if I figure out the current problem. > If you don't hear from me, I've probably gone a different way, like > nulling out the whole table and model, to avoid the problem. > I figured out a really simple workaround to the problem. I simply executed fireTableDataChanged() instead of fireTableRowsDeleted() and my problem went away. All the rows in the JTable now disappear cleanly, just as they should. It doesn't explain the mystery of why fireTableRowsDeleted() chokes but I've invested several hours on trying to make sense of that without making much headway. I'll let my workaround ride for now and get on to other more urgent tasks for now. If I can find a bit of time down the road, I'll revisit the original issue and see if I can figure it out. But, honestly, I'm doubtful that I'll be back to it. This works fine and there are no bad consequences to it that would push me to solve the problem with fireTableRowsDeleted(). Thanks for your help with this, Jeff! Even if we didn't figure it out, I appreciate that you were willing to help and spent some time trying to figure it out! -- Novice
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-16 18:34 +0000
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-16 14:48 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-16 14:55 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-16 15:19 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-16 15:31 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-16 17:57 -0500
Re: Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-17 01:48 +0000
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 03:22 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 03:29 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 03:49 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 03:55 -0500
Re: Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-17 22:21 +0000
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 18:18 -0500
Re: Strange JTable issue in Sun's Java code Jeff Higgins <jeff@invalid.invalid> - 2012-01-17 20:56 -0500
Re: Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-18 05:24 +0000
Re: Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-18 17:40 +0000
Re: Strange JTable issue in Sun's Java code Novice <novice@example..com> - 2012-01-18 05:37 +0000
Re: Strange JTable issue in Sun's Java code Christian Kaufhold <chka@ucuri.chka.de> - 2012-01-19 21:00 +0100
csiph-web