Article View: borland.public.jbuilder.java.swing
Article #8845Re: How to color a cell in a jTable
From: Stephan Klaffer
Date: Mon, 03 Jul 2000 00:00
Date: Mon, 03 Jul 2000 00:00
27 lines
1471 bytes
1471 bytes
Hi there, have a look at http://manning.spindoczine.com/sbe/ There they discuss the entiry SWING library, and also how to write a TableModel and a TableColumnModel. This may help you to understand how the table works and how to color a specific cell. I still have to find that out. ;) Stephan "Helmut Zagler" <helmut.zagler@stud.fh-regensburg.de> wrote in message news:395DF8B2.524620C@stud.fh-regensburg.de... > Hi, > > i just started programming in Java and would like to know how > it is possible to color a specific cell in a jTable Component. For > example i have a Table with 10 Rows and 10 Columns and like to set the > color of cell[3,3] to red. I would be very happy about a code example > > Thanks > > Sam
Technical Details
Message-ID:
<962640227.26351.0.nnrp-02.c29f1f7c@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<395DF8B2.524620C@stud.fh-regensburg.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,55df0e2e89142c79 X-Google-Attributes: gid111d45,public From: "Stephan Klaffer" <stephan.klaffer@decisionworks.co.uk> Subject: Re: How to color a cell in a jTable Date: 2000/07/03 Message-ID: <962640227.26351.0.nnrp-02.c29f1f7c@news.demon.co.uk> X-Deja-AN: 641874939 X-NNTP-Posting-Host: [194.159.31.124]:194.159.31.124 References: <395DF8B2.524620C@stud.fh-regensburg.de> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 962640227 nnrp-02:26351 NO-IDENT [194.159.31.124]:194.159.31.124 X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing