Java Swing UIManager isMnemonicHidden()

Here you can find the source of isMnemonicHidden()

Description

Gets the state of the hide mnemonic flag.

License

Open Source License

Return

true if mnemonics are hidden, otherwise, false

Declaration

public static boolean isMnemonicHidden() 

Method Source Code

//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;
    }
}

Related

  1. installDefaults()
  2. installGtkPopupBugWorkaround()
  3. installGtkPopupBugWorkaround()
  4. isFlat(String id)
  5. isMetalLnF()
  6. listUIResources(String res)
  7. loadPlasticLnF()
  8. loadUIManager()
  9. makeNative()