I have two Java applications running. One is the mother system and another is a sub application. Both using JFrame. Both has an alwaysOnTop(True) behaviors. I have no access on the mother system and it is overriding the alwaysonTop behavior of my sub application.
I tend to invoke requestFocus() on method calls. That seems to suffice in most cases but when idle or start up, the sub application sometimes dont get the focus.
How do I override the mother application's always on top when I do not have access to the mother application?
I also did this
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent e) {
requestFocus();
}
@Override
public void windowClosed(WindowEvent e) {
}