Search code examples
javaswingintellij-plugin

Titled Seperator in Intellij Plugin Configurable


I am trying to create a seperator with a title. Here is an example (from the Intellij Idea Scala plugin):

enter image description here

I tried both a JSeparator and a titled border, but both aren't what you can see in the picture: The JSeparator doesn't support text titles, and the titled border surrounds the entire panel, and isn't just on top.

Any idea how such separator can be created? Thanks ahead.


Solution

  • Try with TitledSeparator class.

    To discover any of the existing UI implementations, you can use UI Inspector.