EDU-692 Change default selected option and task name in "Create new task" dialog

This commit is contained in:
Liana Bakradze
2016-08-02 19:52:45 +03:00
parent 2710d59344
commit 315417e183
2 changed files with 3 additions and 2 deletions
@@ -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);
}
@@ -22,7 +22,7 @@ public class CCItemPositionPanel extends JPanel {
group.add(myAfterButton);
myBeforeButton.setText("before " + postfix);
myAfterButton.setText("after " + postfix);
myBeforeButton.setSelected(true);
myAfterButton.setSelected(true);
}
public int getIndexDelta() {