JDK-8185954 : Mac: JavaFx TextArea doesn't display the Emoji and Symbols on dropping them on the text area
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2017-08-08
  • Updated: 2017-10-19
  • Resolved: 2017-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10Resolved
Related Reports
Duplicate :  
Relates :  
Description
JavaFx TextArea doesn't display the Emoji and Symbols on dropping them on the text area, whereas Mac OS native app TextEdit displays the Emoji and Symbols.

Problem is observed on Mac OS 10.12.5

To setup for this:
System Preferences -> Keyboard -> Show Keyboard and Characters Viewers
should be checked.
Then there should be a Flag on the system bag (which is the input selection pulldown)

Focus on TextEdit and Click the flag, then Show Character Viewer. It should come up, and allow you to add emoji characters into the TextEditor.  

Comments
Fix for issue 8176319 will resolve this issue.
19-10-2017

Still looks good
10-08-2017

Thanks Alex for your comment. Renamed the emojiSymbol parameter to aString as per your suggestion. Please review the modified webrev: http://cr.openjdk.java.net/~mhalder/fx/8185954/webrev.03/
09-08-2017

+1, BTW, emojiSymbol parameter can be renamed to something more neutral
09-08-2017

Please review the webrev: http://cr.openjdk.java.net/~mhalder/fx/8185954/webrev.02/ Cause and their corresponding fixes are explained as below: Cause: 1) Emoji symbol type mismatch. 2) If Emoji symbols are directly converted to UTF-8 format, it contains apple symbol for most of the emoji symbols except two basic symbols (smile and sad faces). 3) Emoji font file (Apple Color Emoji.ttc) was not added. Corresponding Fixes: 1) Emoji symbols are of type NSAttributedString and hence symbols are converted to NSAttributedString before sending further. 2) Converted Emoji symbols to UTF-16 encoding before sending to java. 3) Added Emoji font file (Apple Color Emoji.ttc)
08-08-2017