Revision: 1239
Author: peterdb
Date: 2006-07-26 02:43:18 -0700 (Wed, 26 Jul 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1239&view=rev
Log Message:
-----------
fix for RCP-282: ComboBoxAutoCompletion handles the initial selected object
wrong
Modified Paths:
--------------
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/list/ComboBoxAutoCompletion.java
Modified:
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/list/ComboBoxAutoCompletion.java
===================================================================
---
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/list/ComboBoxAutoCompletion.java
2006-07-26 09:17:52 UTC (rev 1238)
+++
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/list/ComboBoxAutoCompletion.java
2006-07-26 09:43:18 UTC (rev 1239)
@@ -86,9 +86,7 @@
// Handle initially selected object
Object selected = comboBox.getSelectedItem();
- if (selected != null) {
- editor.setText(getStringFor(selected));
- }
+ comboBox.getEditor().setItem(selected);
}
private void fillItem2StringMap() {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs