Article View: borland.public.jbuilder.java.swing
Article #12821Re: Changin cell color in JTable
From: Matt Krevs
Date: Wed, 04 Nov 1998 00:00
Date: Wed, 04 Nov 1998 00:00
19 lines
1207 bytes
1207 bytes
Check out the following link. http://java.sun.com/docs/books/tutorial/ui/swing/table.html It discusses many of the aspects of JTables. Basically you want to create your own table renderer class and set the background color based on your criteria. Alberto Robles wrote in message <363F2A8D.D2D20E56@tecsidel.es>... >I've looking for a way to change one cell background colour in a JTable. >Does anyone succeed in changing it? > >Thanks >Albert > >-- >-------------------------------------------------------------------- >Alberto Robles | Contrary to popular belief, Unix is user friendly. > Tecsidel,S.A. | It just happens to be selective about who it makes >+34-93-2922110 | friends with.
Technical Details
Message-ID:
<71nrtf$8iv2@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<363F2A8D.D2D20E56@tecsidel.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,dbd640fd7c418ab6 X-Google-Attributes: gid111d45,public From: "Matt Krevs" <mattkrevs@flex.com.au> Subject: Re: Changin cell color in JTable Date: 1998/11/04 Message-ID: <71nrtf$8iv2@forums.borland.com> X-Deja-AN: 408061621 References: <363F2A8D.D2D20E56@tecsidel.es> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing