Getting data from one frame into another

Raj Moti

Greenhorn

Posts: 4

posted 12 years ago

Developers

I am having a frame say frame1 which is having a button and textfield. On clicking a button which is on that frame1 I am displaying a frame say frame2. Inside that frame2 I am having a text field and a button. What I want is that when I will click on button of frame2 whatever there in the textfield of frame2 should get displayed in textfield which is inside frame1.

With anticipatory thanks

Kriti Garg

Ranch Hand

Posts: 50

posted 12 years ago

Hi,

pass your first frame refrence to ur second frame and create a get/set methods in ur first frame,call these on action listener of second frame