Results 1 to 13 of 13

Thread: emoji

  1. #1
    jbehrouzi is offline Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0

    Default emoji

    Hi!
    Im working in a program that it need to use convert character (like :)) to picture like this environment and.
    Can help me ? :(((

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,907
    Rep Power
    5

    Default Re: emoji

    What have you tried?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: emoji

    Please go through the Forum Rules, particularly the third paragraph.

    You also need to explain your requirement in adequate detail. As it stands, I have no idea what you're attempting and where the problem lies.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    jbehrouzi is offline Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0

    Default Re: emoji

    Quote Originally Posted by DarrylBurke View Post
    Please go through the Forum Rules, particularly the third paragraph.

    You also need to explain your requirement in adequate detail. As it stands, I have no idea what you're attempting and where the problem lies.

    db
    I want to create a program like yahoo if i type :) in my message it convert to a symbol (I think called emoj)

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default Re: emoji

    emoticon...smiley...etc.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    jbehrouzi is offline Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0

    Default Re: emoji

    Quote Originally Posted by Tolls View Post
    emoticon...smiley...etc.
    Yes !
    I see to a website that they use this unicode to use this work
    for example use \ue056 to smile

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default Re: emoji

    Here's the unicode list of emoticons.
    1F600-1F64F

    Create a map mapping the character string to the relevant unicode character?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default Re: emoji

    And just so you can easily map them to Java unicode escape:
    Charbase U+1F600: GRINNING FACE

    1F600 maps to "\ud83d\ude00" then just increment the second unicode character.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  9. #9
    jbehrouzi is offline Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0

    Default Re: emoji

    I not understand clearly can send me a sample ?

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default Re: emoji

    What don't you understand?
    Map API.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  11. #11
    jbehrouzi is offline Member
    Join Date
    Aug 2013
    Posts
    5
    Rep Power
    0

    Default Re: emoji

    I want to show emoticons in a textfield or something like this

  12. #12
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default Re: emoji

    Assuming the field uses a suitable font (eg one that covers the part of unicode that has the above emoticons) then you'll be fine using the above unicode.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  13. #13
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: emoji

    JTextPane has an insertIcon(...) method. That's probably what you need to research.

    Google search terms: JTextPane emoticon

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •