Passing of information from JFrame to JFrame?
Posted on 2004-11-09
How to pass information from one JFrame (say JFrame1) to another JFrame (say JFrame2)?
For eg, My JFrame2 has retrieve workstation id, startTime and endTime from access database.
Once user are satisfied with the selection, I want to pass these information to JFrame2.
User has to provide additional information on this JFrame2.
Once user click the submit button at JFrame2, workstation id, startTime, endTime (which are passed from JFrame1 to JFrame2) along with the addition information are inserted to the database.
Fyi: I have the Workstation and Reservation classes.
workstation id is a variable of Workstation class.
startTime and endtime are variables of Reservation class.