List Info

Thread: JXTable & glazedList adding rows




JXTable & glazedList adding rows
user name
2006-08-17 14:35:15
Hi again,

I stumbled upon another thing while fixing my previous issue
with 
glazedList & JXTable (thanks again for the hints on that
one, Jeanette & 
Jesse).

While showing a JXTable, I select the last row. Then I add
some more 
rows through eg a button (or some other action/program
cycle). For some 
reason an IndexOutOfBoundsException pops up (all goes well
when using a 
plain JTable). Am I missing something?

TestCase attached to mail. (may look familiar  )

Kind Regards,
Jan

------------------------------------------------------------
---------
To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
For additional commands, e-mail: jdnc-helpjdnc.dev.java.net
JXTable & glazedList adding rows
user name
2006-08-18 05:43:34
Hey Jan ---

I tried out your code - it was simple and demonstrated the
problem
well. It seems that both the EventSelectionModel and JXTable
are both trying to manage the selection, when the source
data
changes, and they end up conflicting.

I've opened a Glazed Lists bug for this here:
  https://glazedlists.dev.java.net/issues/show_bug.cgi?
id=363

I'll try to get to this soon, but I'm a little overloaded!
If you'd like
to look into the code to try to craft a fix, I invite you
to. Otherwise
I'll get to it within a week or so.

In the interim, you'll have to disable EventSelectionModel
by not installing it on your JXTable.

Thanks for your patience on this!

Cheers,
Jesse


On 8/17/06, Jan Hoskens <jhschaubroeck.be> wrote:
> Hi again,
>
> I stumbled upon another thing while fixing my previous
issue with
> glazedList & JXTable (thanks again for the hints on
that one, Jeanette &
> Jesse).
>
> While showing a JXTable, I select the last row. Then I
add some more
> rows through eg a button (or some other action/program
cycle). For some
> reason an IndexOutOfBoundsException pops up (all goes
well when using a
> plain JTable). Am I missing something?
>
> TestCase attached to mail. (may look familiar  )
>
> Kind Regards,
> Jan
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
> For additional commands, e-mail: jdnc-helpjdnc.dev.java.net
>
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
For additional commands, e-mail: jdnc-helpjdnc.dev.java.net

JXTable & glazedList adding rows
user name
2006-08-18 07:22:55
Jesse Wilson wrote:
> Hey Jan ---
>
> I tried out your code - it was simple and demonstrated
the problem
> well. It seems that both the EventSelectionModel and
JXTable
> are both trying to manage the selection, when the
source data
> changes, and they end up conflicting.
>
> I've opened a Glazed Lists bug for this here:
>  https://glazedlists.dev.java.net/issues/show_bug.cgi?
id=363
Nice description for the issue 
>
> I'll try to get to this soon, but I'm a little
overloaded! If you'd like
> to look into the code to try to craft a fix, I invite
you to. Otherwise
> I'll get to it within a week or so.
I'm not really into the details of both,
EventSelectionModel and 
JXTable, so I doubt that I can come up with a fix easily.
But anyways 
I'll take a second look, maybe something pops up.
>
> In the interim, you'll have to disable
EventSelectionModel
> by not installing it on your JXTable.
>
> Thanks for your patience on this!
I've always found you and Jeanne very helpful and quick to
reply. I'm 
wondering how you can manage your time, patience and work
while everyone 
is shooting questions and issues on the list/forum at a
daily rate 

Thanks.

Kind Regards,
Jan
>
> Cheers,
> Jesse
>
>
> On 8/17/06, Jan Hoskens <jhschaubroeck.be> wrote:
>> Hi again,
>>
>> I stumbled upon another thing while fixing my
previous issue with
>> glazedList & JXTable (thanks again for the
hints on that one, Jeanette &
>> Jesse).
>>
>> While showing a JXTable, I select the last row.
Then I add some more
>> rows through eg a button (or some other
action/program cycle). For some
>> reason an IndexOutOfBoundsException pops up (all
goes well when using a
>> plain JTable). Am I missing something?
>>
>> TestCase attached to mail. (may look familiar  )
>>
>> Kind Regards,
>> Jan
>>
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
>> For additional commands, e-mail: jdnc-helpjdnc.dev.java.net
>>
>>
>>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
> For additional commands, e-mail: jdnc-helpjdnc.dev.java.net
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
For additional commands, e-mail: jdnc-helpjdnc.dev.java.net

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )