congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ActionMenuItem.setAction
Code IndexAdd Tabnine to your IDE (free)

How to use
setAction
method
in
org.jfree.ui.action.ActionMenuItem

Best Java code snippets using org.jfree.ui.action.ActionMenuItem.setAction (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Creates a new menu item based on the specified action.
 *
 * @param action the action.
 */
public ActionMenuItem(final Action action)
{
 setAction(action);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates a new menu item based on the specified action.
 *
 * @param action the action.
 */
public ActionMenuItem(final Action action)
{
 setAction(action);
}
origin: org.jfree/jcommon

/**
 * Creates a new menu item based on the specified action.
 *
 * @param action the action.
 */
public ActionMenuItem(final Action action)
{
 setAction(action);
}
org.jfree.ui.actionActionMenuItemsetAction

Javadoc

Assigns the given action to this menuitem. The properties of the action will be assigned to the menuitem. If an previous action was set, the old action is unregistered.

  • NAME - specifies the menuitem text
  • SMALL_ICON - specifies the menuitems icon
  • MNEMONIC_KEY - specifies the menuitems mnemonic key
  • ACCELERATOR_KEY - specifies the menuitems accelerator

Popular methods of ActionMenuItem

  • addActionListener
  • getAction
    Returns the assigned action or null if no action has been assigned.
  • getPropertyChangeHandler
    Returns and initializes the PropertyChangehandler for this ActionMenuItem. The PropertyChangeHandler
  • removeActionListener
  • setAccelerator
  • setEnabled
    Enables and disables this button and if an action is assigned to this menuitem the propertychange is
  • setIcon
  • setMnemonic
  • setText
  • setToolTipText

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best IntelliJ 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