From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing cell color in uitable
Message-ID: <ef5b1e4.0@webcrossing.raydaftYaTP>
Date: Tue, 19 Jun 2007 08:58:18 -0400
References: <ef5b1e4.-1@webcrossing.raydaftYaTP>
Lines: 23
NNTP-Posting-Host: 80.178.78.97
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:414686



YP wrote:
>
> Hello!
> Is it possible to change background color of the particular cell in
> uitable? If so how? Specifically I want to color the cell using
> user provided RGB values.
> I am using MATLAB 7.0.4.365 (R14) Service Pack 2 and Java 1.5.0
> with Sun Microsystems Inc. Java HotSpot(TM) Client VM
> (mixed mode)
>
> I no very little Java and swing programming. I saw other posts
> related to coloring columns but then coloring cell was not very
> obvious.
>
> with regards,
> YP
  

Unfortunately, if you want to color specific cells based on content
or some other logic, you need to define a user-class in Java. It's
not difficult, but you need to know Java for this.

Yair Altman