0

I know that if I am making a GUI java application, I can check if it is active by isActive() or isFocussed() methods.

But I am starting a different application with runtime.exec() method. Is there some way I can know if this window is active?

I am on Windows 10. If someone knows some code that is OS specific for windows, it will work too.

AllLuckBased
  • 157
  • 1
  • 14
  • This may seem interesting, though this is using two JVMs, but not sure if it would work with one JVM and an exe: https://stackoverflow.com/questions/8410011/active-other-processs-window-in-java – Lino Aug 09 '18 at 15:02
  • Yea, I dont know how that will wok with 1 JVM and an exe either... – AllLuckBased Aug 09 '18 at 15:18

0 Answers0