I am creating a jframe in java. But I want to check if a jframe exists already on the system. I have tried a method where you get all processes from the task manager and see if it is running but it won't work. I was using a method from this post: https://stackoverflow.com/a/19005828/15349408 The process name of it is "javaw.exe".
It can't check if the jframe object is null because it will be run from a different program. Is it possible to check if a jframe is already open my system.