Here you can find the source of initHelpButton(final JButton buttonHelp)
private static void initHelpButton(final JButton buttonHelp)
//package com.java2s; /*//w ww . ja v a2 s .c o m * Copyright 2001-2008 Aqris Software AS. All rights reserved. * * This program is dual-licensed under both the Common Development * and Distribution License ("CDDL") and the GNU General Public * License ("GPL"). You may elect to use one or the other of these * licenses. */ import javax.swing.JButton; import java.awt.event.KeyEvent; public class Main { private static void initHelpButton(final JButton buttonHelp) { buttonHelp.setMnemonic(KeyEvent.VK_H); buttonHelp.setDefaultCapable(false); } }