Good Morning, I had build a Main Form with a MenuBar, in this MainForm I had put a layeredpane where I show a JInternalFrame.
In my MenuBar I had put a JButton (Save); I would like that when I click on button Save I can retrieve the data from the JInternalFrame showing.
How I can do?
The code you posted is useless for us. We cannot download compile or run it on our machines.
Did you take a look at the SSCCE link like I requested? Here it is one more time. http://sscce.org/ Please post a proper SSCCE
I am afraid, I think you are going around this the wrong way entirely. What you have done is create a button and ask that button to save. What you need to do is work out how to sve something without the button. Create an object which encapsulates all the data from the internal frame, and save that, using the command line only.
When you have a class with a public save() method, you can call it from the buttonNote there is a special condition: if myModel is a local variable or parameter, it will probably have to be marked final.