How Two Programs Can Talk To Each Other In Java?

Posted by Arnon on Stack Overflow See other posts from Stack Overflow or by Arnon
Published on 2010-04-10T20:39:37Z Indexed on 2010/04/10 20:43 UTC
Read the original article Hit count: 216

Filed under:
|

My first time here...

I want to ?reduce? the CPU usage/ROM usage/RAM usage - in general ?speaking?, all system resources that my App use - how doesn't? :)

For this reason i want to split the preferences window from the rest of the application, and let the preferences window to run as ?independent? program.

The preferences program ?should? write to a Property file(not a problem at all) and to send a "update signal" to the main program - which mean, to call the update method(that i wrote) that found in the Main class.



How can i call the update method in the Main program from the preferences program?

Or in the other hand...

There is a way to build preferences window that take system resources just when it's appear?


Is this approach - of separating programs and let them talk to each other(somehow) - is a right approach for speeding up my programs?

tnx

© Stack Overflow or respective owner

Related posts about java

Related posts about gui