Link to home
Start Free TrialLog in
Avatar of mtnrunner2001a
mtnrunner2001a

asked on

Passing data in java between panels

I am writing a GUI that has many panels that are displayed through a controlPanel class.  I have one panel that gets half the information for a new patient (called newPatientPanel) and then a new screen is called (called newPatientContPanel) to get the remainder of the new patient data (too much data to get to fit on one panel).  Currently I can get the data entered on the newPatientPanel by creating many different get<VariableName> methods in newPatientPanel and having a corresponding set<VariableName> in the controlPanel and calling the set<VariableName> in the newPatientContPanel.  It works, but I'm thinking there has got to be a better way.  Can anyone point me in a better direction?  Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial