Tabnine Logo
ResourceBundleSupport.getMnemonic
Code IndexAdd Tabnine to your IDE (free)

How to use
getMnemonic
method
in
org.jfree.util.ResourceBundleSupport

Best Java code snippets using org.jfree.util.ResourceBundleSupport.getMnemonic (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Returns a JMenu created from a resource bundle definition.
 * <p/>
 * The menu definition consists of two keys, the name of the menu and the
 * mnemonic for that menu. Both keys share a common prefix, which is
 * extended by ".name" for the name of the menu and ".mnemonic" for the
 * mnemonic.
 * <p/>
 * <pre>
 * # define the file menu
 * menu.file.name=File
 * menu.file.mnemonic=F
 * </pre>
 * The menu definition above can be used to create the menu by calling
 * <code>createMenu ("menu.file")</code>.
 *
 * @param keyPrefix the common prefix for that menu
 * @return the created menu
 */
public JMenu createMenu(final String keyPrefix)
{
 final JMenu retval = new JMenu();
 retval.setText(getString(keyPrefix + ".name"));
 retval.setMnemonic(getMnemonic(keyPrefix + ".mnemonic").intValue());
 return retval;
}
origin: org.jfree/jcommon

/**
 * Returns a JMenu created from a resource bundle definition.
 * <p>
 * The menu definition consists of two keys, the name of the menu and the
 * mnemonic for that menu. Both keys share a common prefix, which is
 * extended by ".name" for the name of the menu and ".mnemonic" for the
 * mnemonic.</p>
 * 
 * <pre>
 * # define the file menu
 * menu.file.name=File
 * menu.file.mnemonic=F
 * </pre>
 * The menu definition above can be used to create the menu by calling
 * <code>createMenu ("menu.file")</code>.
 *
 * @param keyPrefix the common prefix for that menu
 * @return the created menu
 */
public JMenu createMenu(final String keyPrefix)
{
 final JMenu retval = new JMenu();
 retval.setText(getString(keyPrefix + ".name"));
 retval.setMnemonic(getMnemonic(keyPrefix + ".mnemonic").intValue());
 return retval;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns a JMenu created from a resource bundle definition.
 * <p/>
 * The menu definition consists of two keys, the name of the menu and the
 * mnemonic for that menu. Both keys share a common prefix, which is
 * extended by ".name" for the name of the menu and ".mnemonic" for the
 * mnemonic.
 * <p/>
 * <pre>
 * # define the file menu
 * menu.file.name=File
 * menu.file.mnemonic=F
 * </pre>
 * The menu definition above can be used to create the menu by calling
 * <code>createMenu ("menu.file")</code>.
 *
 * @param keyPrefix the common prefix for that menu
 * @return the created menu
 */
public JMenu createMenu(final String keyPrefix)
{
 final JMenu retval = new JMenu();
 retval.setText(getString(keyPrefix + ".name"));
 retval.setMnemonic(getMnemonic(keyPrefix + ".mnemonic").intValue());
 return retval;
}
org.jfree.utilResourceBundleSupportgetMnemonic

Javadoc

Returns the mnemonic stored at the given resourcebundle key. The mnemonic should be either the symbolic name of one of the KeyEvent.VK_* constants (without the 'VK_') or the character for that key.

For the enter key, the resource bundle would therefore either contain "ENTER" or "\n".

 
a.resourcebundle.key=ENTER 
an.other.resourcebundle.key=\n 

Popular methods of ResourceBundleSupport

  • createIcon
    Attempts to load an image from classpath. If this fails, an empty image icon is returned.
  • createMnemonic
    Creates the Mnemonic from the given String. The String consists of the name of the VK constants of t
  • createTransparentImage
    Creates a transparent image. These can be used for aligning menu items.
  • formatMessage
    Formats the message stored in the resource bundle (using a MessageFormat).
  • getKeyStroke
    Returns the keystroke stored at the given resourcebundle key. The keystroke will be composed of a si
  • getLocale
    Returns the current locale for this resource bundle.
  • getMenuKeyMask
    Returns the plattforms default menu shortcut keymask.
  • getOptionalKeyStroke
    Returns an optional key stroke.
  • getResourceBase
    The base name of the resource bundle.
  • getString
    Gets a string for the given key from this resource bundle or one of its parents. If the key is a lin
  • internalGetString
    Performs the lookup for the given key. If the key points to a link the link is resolved and that key
  • internalGetString

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JOptionPane (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now