I am trying to create a seperator with a title. Here is an example (from the Intellij Idea Scala plugin):
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.
Try with TitledSeparator
class.
To discover any of the existing UI implementations, you can use UI Inspector.