🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable CellRenderer Quetion

#7685
From: James A. Schulz
Date: Thu, 28 Dec 2000 13:10
46 lines
2542 bytes
John,

Sorry to have bothered you with such a simple problem, but I am very new at
this.  I moved the line in question into the jbInit function and it compiles
without error.

Now, however, I have another question because my renderer does not seem to
have any effect.  The single purpose of the renderer is to write strings
(actually, all I ever write are single characters) centered in the cells of
the table.  But, it's just not happening.  Am I missing something?

thanks,

James

"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.14b49e66609c4485989df1@forums.borland.com...
> On Sun, 24 Dec 2000 17:11:00 -0600, James A. Schulz wrote:
>
> > but the compiler complains about the last line saying:
> >
> > "Applet1.java": Error #: 215 : invalid method declaration;
> >    return type required at line 76, column 29
> > "Applet1.java": Error #: 203 : illegal start of type at
> >    line 76, column 30
> >
> > What am I doing wrong?
>
> I assume that you have only posted selected snippets from your code.
>
> If this is not the case, then the setDefaultRenderer() call is not
> within a method, so the compiler is trying to interpret it as a
> declaration.
>
> If this is the case, then it is likely that your error is somewhere in
> the code that you did not include, which makes it impossible to say
> where the problem is.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <92fdv0$ohp7@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
References: <925vkp$luo7@bornews.inprise.com> <MPG.14b49e66609c4485989df1@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,78ede608538ed371
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2000-12-28 05:12:01 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
From: "James A. Schulz" <jaschulz@wiseware.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: JTable CellRenderer Quetion
Date: Thu, 28 Dec 2000 07:10:41 -0600
Organization: Another Netscape Collabra Server User
Lines: 48
Message-ID: <92fdv0$ohp7@bornews.inprise.com>
References: <925vkp$luo7@bornews.inprise.com> <MPG.14b49e66609c4485989df1@forums.borland.com>
Reply-To: "James A. Schulz" <jaschulz@wiseware.com>
NNTP-Posting-Host: 165.121.198.13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200