Hi, 

Isn't there a way on converting java awt Color to HSSFColor?

I am using the following: 

Color color = new Color(12, 43, 155);

HSSFColor newColor = 
workbook.getCustomPalette().addColor((byte)currColor.getRed(), 
                                        (byte)currColor.getGreen(), 
                                        (byte)currColor.getBlue());

A java.lang.RuntimeException was thrown while running. 

Anyone knows the proper way of doing this? 


Many thanks
Rui 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to