Here you can find the source of isMnemonicHidden()
public static boolean isMnemonicHidden()
//package com.java2s; /*/*from w w w .j av a 2 s . c o m*/ * Copyright (C) 2015 Jack Jiang(cngeeker.com) The BeautyEye Project. * All rights reserved. * Project URL:https://github.com/JackJiang2011/beautyeye * Version 3.6 * * Jack Jiang PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * WinUtils.java at 2015-2-1 20:25:37, original version by Jack Jiang. * You can contact author with jb2011@163.com. */ import javax.swing.UIManager; public class Main { /** * The is mnemonic hidden. */ private static boolean isMnemonicHidden = true; /** * Gets the state of the hide mnemonic flag. This only has meaning if this * feature is supported by the underlying OS. * * @return true if mnemonics are hidden, otherwise, false * @see #setMnemonicHidden * @since 1.4 */ public static boolean isMnemonicHidden() { if (UIManager.getBoolean("Button.showMnemonics") == true) // Do not hide mnemonics if the UI defaults do not support this isMnemonicHidden = false; return isMnemonicHidden; } }