dimanche 19 avril 2015

How to add an inline image to the end of a string in a TextArea in JavaFX?

I am trying to add an emoji to my chat program when my client types :)


I am trying to add this in the FXML controller. I have captured when the user types :) using the following code snippet :



if(chat.contains(":)")) {
...
}


My chat is printed into a textarea named taChat



taChat.appendText(chat + '\n');


Any help is appreciated!


Aucun commentaire:

Enregistrer un commentaire