ListSelectionEvent.getFirstIndex() returns -1



Hi,

I did not find any documentation about a ListSelectionEvent´s
possibility to return -1 due to a call to getFirstIndex(). The event
is fired due to a change in a JTable´s Datamodel - essentially just a
new row is added to the model and I call fireTableDataChanged()

Has anyone experienced this? To my this really smells like a bug.

Felix

.



Relevant Pages

  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... Help with Python codebase ... Update to Macintosh library documentation ... Segfaults on memory error ...
    (comp.lang.python)
  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... typo in liblocale.tex ... subprocess documentation ... Registry not updated by 2.4b1 installer ...
    (comp.lang.python)
  • Re: Tired of 100s of stupid Getter/Setter methods
    ... > reading the documentation that the library developer wrote. ... ability to become familiar with an API. ... Given the choice between finding out about a bug as I'm writing the ... say about a language that's one of the more readable that I work in. ...
    (comp.lang.java.programmer)
  • Re: strtomember and strtoset bug with hyphen
    ... I fully agree with you that the documentation should've been much clearer in ... As I explained, this cannot be considered as bug, because "-" and other ... reserved keyword as the member name without quoting it. ... >> You should either quote the special characters, ...
    (microsoft.public.sqlserver.olap)
  • Weekly Python Patch/Bug Summary
    ... optparse documentation bug fixes ... http://python.org/sf/1203329 closed by loewis ... http://python.org/sf/967182 closed by montanaro ...
    (comp.lang.python)