Custom Settings Window: UI Section Separators?

已回答

I am building a Settings Window for an IntelliJ / Android Studio plugin. I built the UI from scratch, but I have not been able to find how the "headings" and the horizontal line "separator" can be added it.

Below is a screenshot of my own settings window, with 2 sections "Analysis Server Settings" and "Advanced Settings".

I would like these two sections to look like the bit highlighted in red in the picture below, taken from the existing Tools>Terminal settings in Android Studio.

How can I do this?

Or where can I find the source code for these Settings windows?

Thank you.

0

See https://github.com/JetBrains/intellij-community/blob/master/plugins/terminal/src/org/jetbrains/plugins/terminal/TerminalSettingsPanel.java

This component is built with UI Designer, but the border is created explicitly: 

myProjectSettingsPanel.setBorder(IdeBorderFactory.createTitledBorder("Project settings"));
1
Avatar
Permanently deleted user

Thank you very much Aleksey!

0

请先登录再写评论。