try
{
- Class<? extends Toolkit> tk = Toolkit.getDefaultToolkit().getClass();
- Method method = tk.getMethod("getMenuShortcutKeyMaskEx");
+ Toolkit tk = Toolkit.getDefaultToolkit();
+ Method method = tk.getClass().getMethod("getMenuShortcutKeyMaskEx");
if (method == null)
- method = tk.getMethod("getMenuShortcutKeyMask");
+ method = tk.getClass().getMethod("getMenuShortcutKeyMask");
SHORTCUT_KEY_MASK = ((int) method.invoke(tk, new Object[0]));
if (SHORTCUT_KEY_MASK <= 0xF)
{
}
} catch (Exception e)
{
+ e.printStackTrace();
}
}
}