Google Групи більше не підтримують нові дописи або підписки Usenet. Наявний контент можна переглядати.

Re: Swing threading memory consumption exception during focus changes

0 переглядів
Перейти до першого непрочитаного повідомлення

Thomas Hawtin

не прочитано,
11 лют. 2006 р., 04:54:5311.02.06
Кому:
Roedy Green wrote:
> On 10 Feb 2006 01:57:45 -0800, csp...@yahoo.co.in wrote, quoted or
> indirectly quoted someone who said :
>
>> java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
>> at java.util.Vector.elementAt(Vector.java:432)
>> at
>> javax.swing.table.DefaultTableModel.setValueAt(DefaultTableModel.java:637)


> That is a peculiar combination. Why would Vector get an array out of
> bounds exception? It is supposed to expand the array to avoid that.

Vector explicitly throws ArrayIndexOutOfBoundsException when a Vector
index if out of bounds. 1.0 APIs...

> I
> suggest you extend DefaultTable model with our own class that monitors
> the parameters for setValueAt with an assert and blows up with a
> decent error message telling what those value were if they are nuts.
> That may be a clue.
>
> Followups would make more sense in comp.language.java.help
> Advocacy is about java bashing and championing new ideas.
>
> see http://mindprod.com/jgloss/newsgroups.html

As far as I can work out the original poster seems to think the
exception occurs because he is using Swing from multiple threads. An
advocacy group is the right place to bash your head rather than bother
correcting bugs.

Perhaps there is a bug where removing focus from an almost empty editing
table whilst doing some update from a listener causes problems. But we
only have one line of code.

Tom Hawtin

[comp.language.java.help corrected to comp.lang.java.help]
--
Unemployed English Java programmer
http://jroller.com/page/tackline/

csp...@yahoo.co.in

не прочитано,
11 лют. 2006 р., 08:57:3811.02.06
Кому:
Sorry I got your point.

May be I posted it to the wrong group

Anyway After developing a proper example of the above problem I will
post the question to other Java Forums/Group

Bye for now

CSJakharia

0 нових повідомлень