java - Why doesn't my JavaBean icon display? -
I am using Netbeans 6.7.1 on Windows Vista, I have a JavaBin component that works and Has an associated BININFO class where I have set the icon 32x32 color property in the 32x32 gif file located in the class. I have set 16x16 color property in the same way.
I've added bean to the palette but the display icon is the default? Icon
Do I have to set some more?
[updates]
I have put some system output for IDID log in the getIcon () method of the Bininfo class and this is correct when I see the palette The appropriate icon is returning.
I have tried Netbeans 6.8 and the problem remains.
...
I now created a new project, closed a folder c: \ and I used Netbeans 6.8 wizards, to go with it, a java-barine and a bininfo To create a class, then set up 32x32 icon using BeanInfo Editor. I have created different GIF files in MS Paint and Adobe Illustrator.
So I have not actually written any code myself, whatever I have done is used to generate the code and points in the GIF file.
I think I may lose the desire to live, but it can be behind the sofa.
OK, so it has been found that this is a known bug (see Netbeen bleed: see) OK can be available in Netbeans 6.9.
Solution The Bininfo class in a text editor (Netbeen will not allow you to edit this part of the file generated, if you make it with the wizard), then edit the filename string for your icon and its Front / control, recompile, bingo!
Actually, you can sometimes insert your own / unfetch of file name after selecting it using the editor, I do not have enough work to do it in a reliable manner You can get better fortune, you can get better fortune.
Comments
Post a Comment