Paul Clapham wrote:
No, the JComboBox doesn't return a data type. Constructors don't return anything. However "new JComboBox(...)" creates a JComboBox object... that's what the new operator does. I don't know what kind of calculation you want to do with a JComboBox and an int, but probably that wasn't what you thought the calculation would be all about. So what exactly did you expect to be calculating?
What do you see in IntelliJ when you click on File->Project Structure?
You should see a "Project SDK" section on the right if the "Project" option is selected on the left.
If your SDK is missing (and it sounds like it is) then click the "New" button and add it.