TextField not focusing after popup dialog
I have the following

    public boolean warning(String message){
        JOptionPane.showMessageDialog(getFrame(), message, "Error",
                                      JOptionPane.ERROR_MESSAGE);
        textField.requestFocusInWindow();
        return false;
    }


However `textField` does not get focussed after the dialog is closed. It happens on windows only but on linux it is ok.
I am confused why it does not work on windows.

`textField.requestFocusInWindow();` should be getting called after I press the OK button on the dialog.

Have I done something wrong?
TextField not focusing after popup dialog
===

I have the following

    public boolean warning(String message){
        JOptionPane.showMessageDialog(getFrame(), message, "Error",
                                      JOptionPane.ERROR_MESSAGE);
        textField.requestFocusInWindow();
        return false;
    }


However `textField` does not get focussed after the dialog is closed. It happens on windows only but on linux it is ok.
I am confused why it does not work on windows.

`textField.requestFocusInWindow();` should be getting called after I press the OK button on the dialog.

Have I done something wrong?