Getting value from another Jframe form of the same package

hey everyone,

I want to create a program so that i can get the value in text field of frame1 into the text filed of frame 2 of the same package....how can i declare it?...i have read the things that i could find in this forum but didn't help much....i have read that new frame2( ) or something like that should work but i wanted some suggestions

Thanks

[373 byte] By [ElishaWa] at [2007-11-27 9:35:05]
# 1
use setter and getter method, first set the the text value in setter method and get that value and set to text filed
dayanandabva at 2007-7-12 23:01:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
can you post any example...that would be helpful
ElishaWa at 2007-7-12 23:01:15 > top of Java-index,Desktop,Core GUI APIs...
# 3
similar problem in this recent thread http://forum.java.sun.com/thread.jspa?threadID=5189817
Michael_Dunna at 2007-7-12 23:01:15 > top of Java-index,Desktop,Core GUI APIs...
# 4
Thanks Michael_Dunn....i appreciate your reply.....but am getting an error >Exception in thread "main" java.lang.NoSuchMethoodError: main....should i include main in both Tab1 and Tab2?Thanks
ElishaWa at 2007-7-12 23:01:15 > top of Java-index,Desktop,Core GUI APIs...