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.

[1198 byte] By [firebunnya] at [2007-11-26 14:02:54]
# 1
Normally the SWING elements to display in the properties list are always the same for a given type of graphical object. So I don't really see where is your problem.
Andre_Uhresa at 2007-7-8 1:45:48 > top of Java-index,Desktop,Core GUI APIs...
# 2
ok, thank you. Now I thought about the problem from the other side, I've just ctrated 4 independent properties lists for each kind of components. And now I show appropriate properties list when needed. This is much easier uproach :)Thanks and regards,F.
firebunnya at 2007-7-8 1:45:48 > top of Java-index,Desktop,Core GUI APIs...