harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mackie Mathew" <mcclou...@gmail.com>
Subject [harmony-demo-1] JComboBox.testSetGetSelectedItem() fixed
Date Mon, 16 Jun 2008 11:34:54 GMT
Patch attached. https://issues.apache.org/jira/browse/HARMONY-5873

The following code in bold was removed to fix the above problem:

public void setSelectedItem(Object element) {
        selectedItemReminder = dataModel.getSelectedItem();
        if (isEditable || getIndex(element) != -1 || element == null) {
            if (element != getSelectedItem() || element != null
                    && !element.equals(getSelectedItem())) {
                dataModel.setSelectedItem(element);
            } else if (isEditable && element != null &&
!element.equals(getEditor().getItem())) {
                getEditor().setItem(element);
           * } else {
                // fire action event even if selection is not changed
                fireActionEvent();
            }*
        }
    }

Regards,

Tharindu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message