if(FocusManager.getCurrentManager().getActiveWindow() instanceof JDialog) {
if(((JDialog)FocusManager.getCurrentManager().getActiveWindow()).getTitle().equalsIgnoreCase("Shortcut Key")) {
return;
}
}
DialogUtility.showDialog(new ShortcutKeyHelper(), "Shortcut Key", new Dimension(550, 200));
}else if(((KeyEvent)event).getKeyCode() == KeyEvent.VK_ESCAPE) {
if(FocusManager.getCurrentManager().getActiveWindow() instanceof JDialog) {
((JDialog)FocusManager.getCurrentManager().getActiveWindow()).dispose();
}
}else if(((KeyEvent)event).getKeyCode() == KeyEvent.VK_F8) {