Example usage for javax.swing Action DEFAULT

List of usage examples for javax.swing Action DEFAULT

Introduction

In this page you can find the example usage for javax.swing Action DEFAULT.

Prototype

String DEFAULT

To view the source code for javax.swing Action DEFAULT.

Click Source Link

Document

Not currently used.

Usage

From source file:com.meghnasoft.async.AbstractAsynchronousAction.java

/**
 * Constructor, private./*from w  w  w.jav a2  s .  c o  m*/
 *
 *
 */
private AbstractAsynchronousAction() {
    //The key used for storing a longer description for the action, could be 
    //used for context-sensitive help.
    putValue(Action.LONG_DESCRIPTION, "Starts an asynchronous task");
    //The key used for storing the name for the action, used for a menu or button.
    //static String
    putValue(Action.NAME, "Start(long)");
    //The key used for storing a short description for the action, 
    //used for tooltip text.
    putValue(Action.SHORT_DESCRIPTION, "Start");
    //Useful constants that can be used as the storage-retreival key when 
    //setting or getting one of this object's properties (text or icon)
    putValue(Action.DEFAULT, "AsynchronousAction");
}