harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharindu Mathew (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5873) Fixes a problem in JComboBox that fails JComboBox.testSetGetSelectedItem()
Date Mon, 16 Jun 2008 11:33:45 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tharindu Mathew updated HARMONY-5873:
-------------------------------------

    Attachment: testSetGetSelectedItemFix.patch

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();
            }
        }
    }


> Fixes a problem in JComboBox that fails JComboBox.testSetGetSelectedItem()
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-5873
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5873
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tharindu Mathew
>         Attachments: testSetGetSelectedItemFix.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message