Example usage for javax.swing Action SHORT_DESCRIPTION

List of usage examples for javax.swing Action SHORT_DESCRIPTION

Introduction

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

Prototype

String SHORT_DESCRIPTION

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

Click Source Link

Document

The key used for storing a short String description for the action, used for tooltip text.

Usage

From source file:Main.java

PrintHelloAction() {
    super("Print");
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
    PropertyChangeListener[] listeners = super.getPropertyChangeListeners();
    for (PropertyChangeListener lis : listeners) {
        System.out.println(lis);/*from   www.  ja  v a2  s.c o  m*/
    }
}

From source file:Main.java

PrintHelloAction() {
    super("Print");
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
    super.addPropertyChangeListener(new PropertyChangeListener() {

        @Override//ww w. jav a 2  s  . co  m
        public void propertyChange(PropertyChangeEvent e) {
            System.out.println(e.getNewValue());

        }
    });
}

From source file:Main.java

PrintHelloAction() {
    super("Print");
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
    PropertyChangeListener listener = new PropertyChangeListener() {
        @Override// w ww.j a v  a2 s .  c o m
        public void propertyChange(PropertyChangeEvent evt) {
            System.out.println(evt);
        }
    };
    super.addPropertyChangeListener(listener);
    super.firePropertyChange(Action.SHORT_DESCRIPTION, "value1", "value2");
}

From source file:net.sf.jabref.gui.menus.help.ForkMeOnGitHubAction.java

public ForkMeOnGitHubAction() {
    super(Localization.menuTitle("Fork me on GitHub"), IconTheme.JabRefIcon.GITHUB.getSmallIcon());
    putValue(Action.SHORT_DESCRIPTION, Localization.lang("Opens JabRef's GitHub page"));
    putValue(Action.LARGE_ICON_KEY, IconTheme.JabRefIcon.GITHUB.getIcon());
}

From source file:net.sf.jabref.gui.menus.help.DonateAction.java

public DonateAction() {
    super(Localization.menuTitle("Donate to JabRef"));
    putValue(Action.SHORT_DESCRIPTION, Localization.lang("Donate to JabRef"));
    putValue(Action.SMALL_ICON, IconTheme.JabRefIcon.DONATE.getSmallIcon());
    putValue(Action.LARGE_ICON_KEY, IconTheme.JabRefIcon.DONATE.getIcon());
}

From source file:Main.java

PrintHelloAction() {
    super();
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
}

From source file:Main.java

PrintHelloAction() {
    super("Print");
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
}

From source file:ca.sfu.federation.action.ShowWebSiteAction.java

public ShowWebSiteAction() {
    super("Project Web Site", null);
    this.putValue(Action.LONG_DESCRIPTION, "Project Web Site");
    this.putValue(Action.SHORT_DESCRIPTION, "Project Web Site");
}

From source file:MainClass.java

PrintHelloAction() {
    super("Print", printIcon);
    putValue(Action.SHORT_DESCRIPTION, "Hello, World");
}

From source file:ScreenDump.java

PrintHelloAction() {
    super("Print", printIcon);
    putValue(Action.SHORT_DESCRIPTION, "Hello World");
}