I've created a custom SWT control MyControl, and added to SWT Designer's palette.
It works.
And then I create a bean info class MyControlBeanInfo, which exports getIcon(kind).
When add class MyControl to palette, I can see the icon image in the Create Entry dialog, but after added, the icon turned back to the default icon in the palette.
If I implement BeanInfo on MyControl, rather than create a separate class MyControlBeanInfo, I can always see the icon image.
But according to java beans spec, I don't have to implement BeanInfo on MyControl, and the two classes should be separated.