I am finding that the "CharColor" property and the "CharBackColor" property are behaving differently.
I can set text color by getting the integer value of the color from a Java Color object without any problem:
Code: Select all
xPropertySet.setPropertyValue("CharColor", Color.BLUE.getRGB()); //same as hex 0xFF0000FF
However this does not work for the "CharBackColor" property:
Code: Select all
xPropertySet.setPropertyValue("CharBackColor", Color.YELLOW.getRGB()); //same as hex 0xFFFFFF00
If however I explicitly set the alpha to 0 (which should make it transparent), now you can see a Yellow background!
Code: Select all
xPropertySet.setPropertyValue("CharBackColor", Color.YELLOW.getRGB() - 0xFF000000); //same as hex 0x00FFFF00
This only happens for the "CharBackColor" property, and not for the "CharColor" property.
I have not tested this in any other languages, only in Java using the Netbeans plugin.
If anyone else can run a test based on this exact use case, please confirm the results.
I have also opened an issue for this on the bugzilla bug tracker. If anyone can confirm the results from this same test, please confirm on the bug tracker also: https://bz.apache.org/ooo/show_bug.cgi?id=126531