R
Ramon F Herrera
I am developing a two-application system. The two apps sit side-by-
side on the monitor, and I need to squeeze every square inch of screen
real state. One of the applications in written in Java by myself and
the other is the well-known Adobe Acrobat.
My question is related to controlling the two windows and placing them
in the correct places on the screen (exactly half and half). A
controlling program can exec my Java app and tell it to place itself
on the left side of the screen, at coordinates such-and-such, by
parameter passing. Similarly, it can start Acrobat telling it (I hope
there is a way to accomplish this) to locate itself on the right side.
So far, so good. What happens, however, if the applications are
already running in some undesirable spot? I don't want to kill it and
restart it, I just want to tell it: "please move over to your correct
spot". So I will need to sent to some sort of message to the Java app.
The COM/CORBA techniques come to mind, in which the application is
remote controlled. How should I build my app to accept this kind of
control from an outside program? I guess I will need to publish some
interfaces and methods. I would definitely prefer to use any standard
(read: non-Microsoft) component model.
Then, there is the issue of how to control Acrobat, but I guess that
is better left for another forum.
-Ramon
side on the monitor, and I need to squeeze every square inch of screen
real state. One of the applications in written in Java by myself and
the other is the well-known Adobe Acrobat.
My question is related to controlling the two windows and placing them
in the correct places on the screen (exactly half and half). A
controlling program can exec my Java app and tell it to place itself
on the left side of the screen, at coordinates such-and-such, by
parameter passing. Similarly, it can start Acrobat telling it (I hope
there is a way to accomplish this) to locate itself on the right side.
So far, so good. What happens, however, if the applications are
already running in some undesirable spot? I don't want to kill it and
restart it, I just want to tell it: "please move over to your correct
spot". So I will need to sent to some sort of message to the Java app.
The COM/CORBA techniques come to mind, in which the application is
remote controlled. How should I build my app to accept this kind of
control from an outside program? I guess I will need to publish some
interfaces and methods. I would definitely prefer to use any standard
(read: non-Microsoft) component model.
Then, there is the issue of how to control Acrobat, but I guess that
is better left for another forum.
-Ramon