How do I make a choose SDK dropdown?

Answered

I want to be able to use this dropdown in my own plugin:

I am writing my own project setup using the wizard steps etc. I am using Swing and IntelliJ's built in form editor.

I want them to be able to select the SDK, like you can on a regular Java project. I have seen another plugin use this exact button so I know there must be a way.

These forums are quiet, so please if you have even a hint of what to do or how to put me on the right track, please kindly offer it.

Many thanks

1 comment
Comment actions Permalink

Hi Stephen,

Please take a look at com.intellij.openapi.roots.ui.configuration.JdkComboBox.

In general, I recommend using UI Inspector:
https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html

It allows you to click any UI interface and see its implementation details.

0

Please sign in to leave a comment.