🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to color a cell in a jTable

#8932
From: Helmut Zagler
Date: Sat, 01 Jul 2000 00:00
10 lines
859 bytes
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: <395DF8B2.524620C@stud.fh-regensburg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,55df0e2e89142c79,start
X-Google-Attributes: gid111d45,public
From: Helmut Zagler <helmut.zagler@stud.fh-regensburg.de>
Subject: How to color a cell in a jTable
Date: 2000/07/01
Message-ID: <395DF8B2.524620C@stud.fh-regensburg.de>
X-Deja-AN: 641201749
Content-Transfer-Encoding: 7bit
X-Trace: 1 Jul 2000 06:47:50 -0800, 194.95.106.117
Organization: Fachhochschule Regensburg
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing