| Summary: | focusLost of Text object does not work properly | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thilo Brandt <mail> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | skovatch |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
This is bug 318830. *** This bug has been marked as a duplicate of bug 318830 *** |
Build Identifier: 20100617-1415 The following coding works fine on Windows and Linux, but causes Problem with Mac OS X 10.6 with Cocoa 64-bit libraries: final Text number = new Text(phoneGroup, SWT.BORDER); number.setText("+49 1234 567890"); number.addFocusListener(new FocusAdapter() { public void focusGained(org.eclipse.swt.events.FocusEvent e) { number.selectAll(); } public void focusLost(org.eclipse.swt.events.FocusEvent e) { // check the number input if (number.getText().trim().length() == 0){ return; } Formatter f = Formatter.getInstance(); number.setText(f.format(number.getText())); } }); On Mac OS X the call number.setText(...) within the focusLost Method has no effect on the rendering of the Text object. Reproducible: Always Steps to Reproduce: 1. Execute the coding above on Mac OS X 10.6 with cocoa 64-bit SWT 3.6 libraries 2. 3.