Re: JTable bug
From: Nigel Wade (nmw_at_ion.le.ac.uk)
Date: 11/16/04
- Next message: Richard Asbury: "Swing MDI applications"
- Previous message: John C. Bollinger: "Re: Thread-question"
- In reply to: Babu Kalakrishnan: "Re: JTable bug"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Nov 2004 16:56:27 +0000
Babu Kalakrishnan wrote:
> Nigel Wade wrote:
>> Babu Kalakrishnan wrote:
>>
>>
>>>As opposed to the views of some other posters, I think JTable (or at
>>>least the JDK 1.4 implementation of it) does allow nulls as values for
>>>cells - The default cell renderers display these as blank cells.
>>>
>>
>>
>> Are you sure about that?
>>
>> The emperical evidence I have gained would suggest otherwise (at least in
>> 1.4.2). When I inadvertently stored some null entries in a table model
the
>> result was NullPointerExceptions when the table attempted to render a
null
>> entry.
>>
>
> Try running the following program and check if it gives any
> NullPointerExceptions. On my system it doesn't (JDK 1.4.2 Linux)
Hmm, it works on my system as well.
My memory must be faulty. I definitely remember getting
NullPointerExceptions when I had nulls in the model, but it's while ago and
I don't remember the exact details. It could be I was using a custom model
and hadn't programmed it to handle null fields correctly...
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
- Next message: Richard Asbury: "Swing MDI applications"
- Previous message: John C. Bollinger: "Re: Thread-question"
- In reply to: Babu Kalakrishnan: "Re: JTable bug"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|