Here is my problem:
I’m building 2 applications:
- One would be the ‘editor’, and I would put some panels, buttons, text areas, etc.
- The 2nd one will be the ‘application’, where I can interact with those components
I’m thinking if I can save the main panel of the editor (and it has the other components inside) into a File using FileOutputStream and then read it on the other application.
I’ve tried so. Now I have a file with a lot of bytes, but how would I read it and build it again into the components?
I’m not sure on how to do this, and I couldn’t find the correct terms to do the searching.
The term you are looking for is called serialization. Here is an example using Java Swing.