You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Calvin Cheung <ca...@quadbase.com> on 2003/04/25 20:34:11 UTC

POI Font Color Help

I would like to know it there any way to set the font color to something besides COLOR_NORMAL or COLOR_RED? Can we use colors from a custom palette?

Thanks in advance.

Calvin

Re: POI Font Color Help

Posted by John Lloyd <ll...@us.ibm.com>.
I used the indexes from HSSFColors for example

index = new HSSFColors.Green().getIndex();
myHSSFFont.setColor(index);

John

Email  * lloydj@us.ibm.com
Phone  * 919-254-8021
Snail  * MZDA/062, IBM Corp., P.O. Box 12195, RTP, NC 27709-2195



                                                                                                                                 
                      "Calvin Cheung"                                                                                            
                      <calvin@quadbase.        To:       "POI Users List" <po...@jakarta.apache.org>                          
                      com>                     cc:                                                                               
                                               Subject:  POI Font Color Help                                                     
                      04/25/2003 02:34                                                                                           
                      PM                                                                                                         
                      Please respond to                                                                                          
                      "POI Users List"                                                                                           
                                                                                                                                 



I would like to know it there any way to set the font color to something
besides COLOR_NORMAL or COLOR_RED? Can we use colors from a custom palette?

Thanks in advance.

Calvin