How to create button with icon
已回答
Dear all,
I'm developing a plug-in. I want to use icon buttons similar to idea's run and debug, but I don't know how to create it.
I want the effect

Current effect:Use JButton to created.

Thanks a lot.
请先登录再写评论。
James,
Using UI Inspector you can check the exact classes related to any UI element in the IDE.
Thanks to that tool, we can quickly check, that the button's superclass is ActionButton.
Hello Jakub, I've added ActionButton according to the document you provided, but there's a small problem. ActionButton.MySeparator is private。 How can I add it? I can't use it directly
Have you tried Separator?
Yes, I've tried it. I think it's my wrong usage.
How to use it? Do you have any examples?
You can search for examples in the intellij-community GitHub repository, i.e. PropertyTablePanel.java
Got it, Thank you!
By the way, I also sent you a separate email, if you have time, please have a look, there are some questions I hope you can answer!
This email address: chesterccw@163.com
It was sent on August 3, China time UTF-8 TimeZone.
Provide this information so that you can find it easily.
Thank you very much.
I just referred to it PropertyTablePanel.java Changed my code, but found that there is still no Separator
This is part of my code
···
···
I added a divider after the second icon
This is the display. It doesn't seem to work