Hi everyone!
Sorry, i already asked this question on java beginner, but didn't get any feedback. And i could use some help...
I have a JFrame that contains two internal frames.
I would like the first one to send data to be displayed on the second internal frame. (Context: the first one contains a list of parameters saved on the hard drive. When the user double-click on one of them, they are loaded. I would like the second one to display these data).
I have tried to read as much as possible, and it seems that using an event listener might be the solution. But i don't see how i could have the second frame to be aware of an event in the first one, because they are separated classes.
The 'Java Head First' book gave me an hint, stating that one class should be nested within another one, but that's not very elegant when the two classes are JInternalFrame.
Am i completely confused ?....
jy
Sorry, i already asked this question on java beginner, but didn't get any feedback. And i could use some help...
I have a JFrame that contains two internal frames.
I would like the first one to send data to be displayed on the second internal frame. (Context: the first one contains a list of parameters saved on the hard drive. When the user double-click on one of them, they are loaded. I would like the second one to display these data).
I have tried to read as much as possible, and it seems that using an event listener might be the solution. But i don't see how i could have the second frame to be aware of an event in the first one, because they are separated classes.
The 'Java Head First' book gave me an hint, stating that one class should be nested within another one, but that's not very elegant when the two classes are JInternalFrame.
Am i completely confused ?....
jy