Using Javacode to get the actual name of the Program that is top : <p>I am currently writing a Java Application, that needs to filter the name of the Program whichs UI is front. Sorry for my bad english.
So let's say the Java App is running in Background and I open Windows -> Games -> Minesweeper then i want the App to only tell me "Active: Minesweeper". Without any additional information. Just the name "Minesweeper"</p>

<p>I already tried using JavaNativeAccess but I'm still unfamiliar with it.</p>

<p>Thanks you all in advance</p>
