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.