display different SWING elements depending on choosen graphical object.
Hello,
I have a problem on how to display an editable properties list for some graphical components. I have 4 kinds of components with differnet properties. I can choose a component by clicking on it. On the same time, when component is choosen, properties list in the other panel is changed accordingly to choosen component. Let's say, I choose an Interface (1 of 4 kinds of possible components). Interface has a name (string), isCollection field (boolean), connectionType - enumeration. I should be able to edit those fields in properties list. So, I can change name, switch on/off isCollection field, chooes from enumeration field. Then I click save and can choose other component with other properties - like String, String, ComboBox - and I can edit these properties too. So, I need a sollution to pass correct properties from choosen component to properties list (I already pass properties list as Properties and I display all of them as JText fields, but as I told befor I need more kinds of fields, not only JText). And I need a sollution to display different kinds of SWING elements from given properties list. Any help is much appreciated.
Thanks and regards,
F.

