The fix would be to make sure _requestFocus() is not called from WPrintDialogPeer.java or from WFileDialogPeer
by overriding requestFocus() method in those classes.
After such overwrite method:
public boolean requestFocus(Component lightweightChild,
originally defined in sun.awt.windows.WComponentPeer.java
will not be called for WPrintDialogPeer.java and for from WFileDialogPeer.java