How to display the SDK list in a JComboBox?

Answered
I'm trying to develop an IntelliJ (Java) plugin and I've managed to add a new module type to project wizard like this for the next step, I want to provide the option to select the project SDK from a JComboBox like this 

and for that, I've created a form and bound it to a java class which extends ModuleWizardStep but I cannot figure out how to detect the SDK list and display it in a JComboBox

can someone please point me in the right direction, thanks!



0
1 comment
Avatar
Permanently deleted user

Please try this code snippet:

        ProjectSdksModel model = new ProjectSdksModel();
        model.reset(project);
        JdkComboBox jdkComboBox = new JdkComboBox(model, null);
0

Please sign in to leave a comment.