Re: JTable bug

From: Nigel Wade (nmw_at_ion.le.ac.uk)
Date: 11/16/04


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


Relevant Pages

  • Re: Help! Can I do this for under $400?
    ... what you save in money you have to pay for in increased ... For ports 80/443 you would leave the "External IP" field blank to allow ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.security.firewalls)
  • Re: Problem detecting HP Tape Drive
    ... fairly fundamentally wrong with your SCSI driver setup. ... but boot messagesare not shown on the screen ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (RedHat)
  • Re: two or more jvm in a single machine
    ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.programmer)
  • Re: Wrong result from System.currentTimeMillis()
    ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.programmer)
  • Re: response
    ... Nigel Wade, System Administrator, Space Plasma Physics Group, ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.programmer)