public void run(){ userInputEnabled=isEnabled; if(!isEnabled){ userCommentsText.setText(""); commentChanged = false;   designationComboBox.setSelectedIndex(0); }  userCommentsText.setEnabled(isEnabled); prevCommentsComboBox.setEnabled(isEnabled); designationComboBox.setEnabled(isEnabled);  if(isEnabled) userCommentsText.setBackground(Color.WHITE); else userCommentsText.setBackground(userCommentsTextUnenabledColor);
public void run(){ boolean b = projectChanged; BugInstance bug = node.getBug(); setCurrentUserCommentsText(bug.getAnnotationText()); designationComboBox.setSelectedIndex(designationList.indexOf(node.getBug().getSafeUserDesignation().getDesignation())); commentChanged = false; setProjectChanged(b);
			public void run(){								userInputEnabled=isEnabled;				if(!isEnabled){					userCommentsText.setText("");					commentChanged = false;					//WARNING: this is hard coded in here, but needed					//so when not enabled shows default setting of designation					designationComboBox.setSelectedIndex(0);				}								userCommentsText.setEnabled(isEnabled);				prevCommentsComboBox.setEnabled(isEnabled);				designationComboBox.setEnabled(isEnabled);								if(isEnabled)					userCommentsText.setBackground(Color.WHITE);				else					userCommentsText.setBackground(userCommentsTextUnenabledColor);			}