Hi This is a bit tricky. Hopefully, I'll make myself clear as to what is the problem. Okay, My design stage is this way : Bean consists of JScrollPane => JPanel and 2 buttons. I'm writing a setdata method for the bean such that if I call the setdata, the bean is going to be populated with Labels & TextFields with data in them. I have a class called Nodes defined with 2 member variables, Type and Value => datatype String. I'm passing this Nodes and a Vector parameter in the setdata method. I need to present the appropriate data in the labels and textfields accordingly depending on the values and the type respectively . Please guide me with this or let me know if you could'nt get the qn. as tricky as it seems to be. Thanks sandhya