I mean,
I have to capture the events(window event /action event etc. ) of Aplication B in to A and I don't want to write any code any code in application B for this, is it possible?
if i need to write minimum lines of code in B, then what is best technique sockets/RMI or anything else ?
Capture as in duplicate them or stop them from getting to App A?
You can look at the Robot (java API.) That might or might not help.
If it doesn't then you probably can't do it in java.
> sockets/RMI
Those definitely would require something in B, so if it isn't already there then it won't work.