java - Prevent JavaFX Window from Stealing Focus -


i'm trying make overlay on screen using javafx , issue i'm having whenever overlay pops up, steals focus whichever program i'm in. issue overlay allows user simulate keyboard key presses using robot class (like on-screen keyboard) , without keeping focus in original window, typed characters have go. i've tried setting modality none, that's default option , doesn't seem doing anything. putting javafx scene in jframe work or there better way in javafx?

try

when focused -> compute want  call stage.toback(); //the focused window prior yours gain focus 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -