On Fri, 17 Oct 2008, Rob Y wrote:
That's the way I was going to do it too. I was just hoping that I could use equals to simplify the check for 'style already present'.
Alas HSSFCellStyle.equals() won't do what you want here - it checks that the style indexes are the same, and that the format records are the same. For the case where you're creating a new HSSFCellStyle and setting some properties onto it, these two won't be the case
You might have some luck with checking if the underlying ExtendedFormatRecords match, but I can't be sure
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
