Vision Component - removing default appearance properties?

Hi all,

Just a quick one when I create new vision components, the default properties you would expect appear in the appearance show up (I am referring to the Font, Foreground Color and Background Color properties).

I am wondering if there is anyway to remove these properties as I don't use them, the components background is transparent, foreground colour is automatically determined based on variables and there is no text on the component.

image

So firstly, if anyone can advise on how to remove them it would be appreciated.

Secondly, (for future components I create that may use these properties) how are they accessed.

Thanks!

They are fundamental java Swing properties. You might be able to delete them from the bean you created for your component.

Any idea how? Or can they be at least hidden from designer? At the moment I am just providing properties that aren't used and I don't want to confuse engineers.

CommonBeanInfo has a .removeProp() method. Use that in your bean's .initProperties() override.

2 Likes