Skip to content

JDialog not focused on OSX when Java is not on top

My JDialog is not focused when the Java program is not in the front in OSX. How do I achieve this? I have the following test program to illustrate the scenario (at the bottom), running using javac Test.java && java Test from a terminal. When the terminal output “Started first”, it will cha…