Community
Participate
Working Groups
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.
This is bug 318830. *** This bug has been marked as a duplicate of bug 318830 ***