Show action caption (text) in ActionToolbar

Want to display the name of the action in a custom toolbar, and not only the icon. Is this possible?

1 comment
Comment actions Permalink
I know it has been 10 years, but still, if anyone else has this question, override the displayTextInToolbar of AnAction.

actionGroup.add(new AnAction("Test") {

public boolean displayTextInToolbar() {
return true; // like so

public void actionPerformed(AnActionEvent e) {
// do something

Please sign in to leave a comment.