0

I have two projects(P1 & P2) which are two different systems, each one has its GUI (GUI1 & GUI2). GUI1's output must be GUI2's input. In order to pass all the information from GUI1 to GUI2, I have added P1 as a dependent project of P2. With this, I have access to all the functions in P1 but I can´t get the modified data created after running GUI1( GUI1 is package of P1). As you can see GUI1 has several tabs in which loaded data from external files is modified and new variables/data is created while running GUI1.

GUI's structure, serveral tabs.

All the information displayed in GUI1 should be the input of GUI2 in order to modify it.

GUI's input tab

Could you let me know how I can pass all teh data from GUI1 to GUI2? I would be really pleased if you could help me as I am new programming in Java and I really dont find any way to make it.

M.E
  • 21
  • 5
  • 3
    Don't think GUI -> pass to -> GUI. Think GUI -> pass to -> common model -> GUI – Jacek Cz Jan 26 '17 at 09:44
  • Ho would do in order to create a common model that is able to store all the data from GUI1 and then access from GUI2? I have no idea how this shoud be done. And is it appropiate to add P1 as dependent project of P2? – M.E Jan 26 '17 at 09:48
  • At first stage thing in terms of single program. Swing philosophy of model hard to describe in comment. – Jacek Cz Jan 26 '17 at 09:59
  • More on Swing models [here](http://stackoverflow.com/a/3072979/230513). – trashgod Jan 26 '17 at 10:54
  • Databases are one way to share data, or some kind of middleware - passing events between apps. – doctorlove Jan 26 '17 at 12:25
  • If all the information of P1 is displayed in the last tab of the GUI1, making the MVC model of the last tab would be enough to get access to that data from GUI2? – M.E Jan 26 '17 at 17:47

0 Answers0