Results 1 to 3 of 3
- 07-28-2011, 07:43 AM #1Member
- Join Date
- Jul 2011
- Rep Power
How can i pass the data from one JPanel to other...?
I have a jframe which contains 3 jpanel. I want to pass the Jtextfield value of one panel to other. Each panel is shown using JTabbedPane. I am getting null when i access the value of other text field.
This is the actionPerformed code of first panel
both str and scrTxt is (public static)
public void actionPerformed(ActionEvent e)
I imported the class
using the belove code i tried to access the data:
but i am getting null string;
- 07-28-2011, 08:43 AM #2
sujay -- next time, don't hijack an old thread. Get your own --they're free!
- By trishtren in forum AWT / SwingReplies: 7Last Post: 04-05-2011, 06:52 PM
- By hipintu in forum Advanced JavaReplies: 7Last Post: 02-11-2011, 06:38 AM
- By yashrajsen in forum AWT / SwingReplies: 1Last Post: 11-09-2010, 09:28 AM
- By rakesh_mca in forum Java ServletReplies: 7Last Post: 10-25-2009, 01:13 PM
- By sgoyal in forum Advanced JavaReplies: 1Last Post: 10-01-2009, 05:12 AM