How do I order my property descriptors in my custom property sheet dialog? It seems that getPropertyDescriptors() returns them in a very arbitruary fashion!!

Rickard berg

You can't do this.

What I did was to add a custom attribute "order" to the BeanDescriptor of the BeanInfo class which specifies the order, and then my GUI tools used this property.

FAQ Manager note: The order isn't arbitrary. The Introspector classes manages the list in a Hashtable. The String hash codes determines the order.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact