Hey Amol
yes i'm using comboinstance.setVisible(true) in the itemstatechange event even though I don't really find this approach very impressive(because I want to allocate memory to a component on the runtime to save memory) and its not also working for me.
What I had in mind earlier was that on the itemstatechangeevent of comboserver
1. Add the comboinstance on the panel.
2. Add the ItemListener to the comboinstance.
I think it would have worked in the above scenario (i'm going to try it now on eclipse) but on netbeans the initComponent() method is invoked from main() wherein the whole code goes automatically when I drag and drop components on the panel from the Swing GUI palette. And to add to it, this initComponent() method is non-editable(i.e. it is greyed out, and doesn't let me modify the code)
I'm not so new to
Java but Netbeans is a new environment for me and I can't figure a way out.
If you like I can post you the snapshot of the code.