
jadex.commons.gui.ToolTipAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-commons-gui Show documentation
Show all versions of jadex-commons-gui Show documentation
Common GUI support classes.
package jadex.commons.gui;
import javax.swing.AbstractAction;
import javax.swing.Icon;
/**
* An action with associated tooltip text.
*/
public abstract class ToolTipAction extends AbstractAction
{
/**
* Defines an Action
object with the specified
* description string and a default icon.
* @param name The action name.
* @param icon The icon.
* @param tooltiptext The tool tip text.
*/
public ToolTipAction(String name, Icon icon, String tooltiptext)
{
super(name, icon);
if(tooltiptext!=null)
putValue(SHORT_DESCRIPTION, tooltiptext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy