Can Java check what program is currently focused (used?) and tell you what the name of the program is?
Here's an example of what I mean:
User is using Chrome
Program: "Currently focused: 'chrome.exe'
It doesn't nessecarily have to name the name of the exe file, the title of the window is fine as well.
Is this possible? if so, how would I go about making this?