<p> I have an applet with two panels, A110 and A150, set up with card layout. A110 and A150 are instantiated (from separate classes) and added in that order in the applet. I need to pass some parameters from A110 to A150 and do certain things (like make a textField editable, etc.) with the received parameter. <p>
For example, A110 has 2 buttons, btnUpdate and btnDisplay. When I call the applet A110Main, the first child (A110) is displayed. With a click on any button, I can switch to the second child(A150).
<p> I want to make the textField of A150 editable when I click btnUpdate. <p>
I don't know how to do it because panel A150 has already been created (just not shown )with initial paramers from the applet(A110Main). How do I gain access to the second child's components from the first child? How do I repaint the component, to make it editable? Do I have a design flaw from the very beginning? At the very least, I do need to have two panels and control one panel from the other. <p>
I messed the formatting and I am sorry. It did look alright when I previewed it. Believe me! In fact, when I put [pre][(slash pre], the square brackets, it didn't look alright, everything was like flowlayout!! A firm believer in WYSWYG, I am embarassed!