Hi - I am having a heck of a time with what I am sure is a simple issue. I have a frame with a tabbed pane. In this pane I have placed two JPanels that are separate classes. I am trying to copy the value of a text field from one panel to the other based on the button press action on the second. I seem to have missed the concept of visibility here. What I am trying to do is pretty simple in VB etc but for the life of me I can't seem to get it here. I need this so that I can do updates on records in a database and promulgate the record id's. Any help woudl be greatly appreciated. Thanks in advance.
Here is the code for the frame that holds the tabbed panel etc;
Here is the code for the 1st panel
And here is the code for the second and problematic panel;
And finally here is the code for the bootstrap program that contains my Main;
Joined: Jun 09, 2003
Joined: Apr 05, 2005
Sounds like you need some sort of shared "controller" or data model behind the panels. You would share this class and then have the panel set a value on it. It would then update any listeners (one which could be your other panel).