This is basically the layout of my task at hand:
I have one "host" program - the basic GUI for the entire application running at any given time. It contains a JTabbedPane. When the user adds a tab, I want the program to start a completely new process (new JVM and all) and return the JPanel created from the process. Communication between the two processes is extremely preferable, though not completely necessary (event-driven communication would be wonderful, but that's a long shot).
I tried one method (among other similar methods) that all ran into similar exceptions.
Essentially, when the host creates the process, it creates an ObjectInputStream from the System.out of the new process and reads a JPanel object (while the new process writes the JPanel to System.out via ObjectOutputStream).
What happens when I try this, is that some of the components in the JPanel are loaded from different classes that is known to only the new process. The host process cannot define the classes because it has no access to them.
Something like the Google Chrome architecture would be nice, where each tab is in a separate process, and the main frame is only a tabbed pane with a add tab button. Any advice/help/links/code segments are appreciated.