{
if (adjusting)
{
- return;
+ // return;
}
if (!isChoiceParameter)
{
*/
private void checkIfModified()
{
- if (!adjusting)
+ Object newValue = updateSliderFromValueField();
+ boolean modified = true;
+ if (newValue.getClass() == lastVal.getClass())
{
- try
- {
- adjusting = true;
- Object newValue = updateSliderFromValueField();
- boolean modified = true;
- if (newValue.getClass() == lastVal.getClass())
- {
- modified = !newValue.equals(lastVal);
- }
- pmdialogbox.argSetModified(this, modified);
- } finally
- {
- adjusting = false;
- }
+ modified = !newValue.equals(lastVal);
}
+ pmdialogbox.argSetModified(this, modified);
}
@Override
if (isChoiceParameter)
{
choicebox = buildComboBox(parm);
+ choicebox.setSelectedItem(parm.getValue());
+ choicebox.addActionListener(this);
controlsPanel.add(choicebox, BorderLayout.CENTER);
}
else