🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7726

Re: JTable Questions

#7726
From: John McGrath TeamB
Date: Fri, 05 Jan 2001 09:37
23 lines
1605 bytes
On Wed, 3 Jan 2001 19:00:06 -0000, Niall Pemberton wrote:

That code should be quite helpful, Niall.

>     if (obj == null)
>       characterMatrix[row][col] = null;
>     else
>       characterMatrix[row][col] = (Character)obj;

One note on this code:  It is not necessary to check for null before 
casting a reference, since null can serve as a reference to any object.  
So this code could be replaced with

    characterMatrix[row][col] = (Character) obj;

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.14bf52261674ad15989e3f@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
References: <92lbpr$6ro1@bornews.inprise.com> <MPG.14b89345ccc5b0c7989e08@forums.borland.com> <92nedq$66a1@bornews.inprise.com> <MPG.14bb192872e51878989e12@forums.borland.com> <3a5376e4_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7fa15b59fdc30449
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-05 01:42:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JTable Questions
Date: Fri, 5 Jan 2001 04:37:19 -0500
Organization: Another Netscape Collabra Server User
Lines: 23
Message-ID: <MPG.14bf52261674ad15989e3f@forums.borland.com>
References: <92lbpr$6ro1@bornews.inprise.com> <MPG.14b89345ccc5b0c7989e08@forums.borland.com> <92nedq$66a1@bornews.inprise.com> <MPG.14bb192872e51878989e12@forums.borland.com> <3a5376e4_2@dnews>
NNTP-Posting-Host: dslcv1-60.fast.net
X-Newsreader: MicroPlanet Gravity v2.30