EDU-692 Change default selected option and task name in "Create new task" dialog
[idea/community.git] / python / educational-core / course-creator / src / com / jetbrains / edu / coursecreator / ui / CCCreateStudyItemPanel.java
index 572ba0806508ba3955cde2346b9fe8d794e84d7d..b006845318a94b4aebe5d5f9357f2a11ee0872e2 100644 (file)
@@ -13,7 +13,8 @@ public class CCCreateStudyItemPanel extends JPanel {
   public CCCreateStudyItemPanel(String itemName, String thresholdName, int thresholdIndex) {
     myThresholdName = thresholdName;
     myItemName = itemName;
-    myNameField.setText(itemName + thresholdIndex);
+    int newIndex = thresholdIndex + 1;
+    myNameField.setText(itemName + newIndex);
     add(myPanel, BorderLayout.CENTER);
   }