if(((JDialog)FocusManager.getCurrentManager().getActiveWindow()).getTitle().equalsIgnoreCase("Shortcut Key") ||
((JDialog)FocusManager.getCurrentManager().getActiveWindow()).getTitle().equalsIgnoreCase("Mine Sweeper")) {
return;
}
}
DialogUtility.showDialog(new MS(), "Mine Sweeper", new Dimension(250, 350));
}
}else if(event instanceof FocusEvent) {
if(event.getID() == FocusEvent.FOCUS_GAINED) {
FocusEvent fEevnt = (FocusEvent)event;
if(fEevnt.getComponent() instanceof JTextComponent) {