Can anybody spot the problem in this code? It correctly gets the key event, and it only prints out the text if the code of the key event is ENTER. The problem is that it also executes this code if you typed ALT+ENTER, or CTRL+ENTER, or any other combination of modifiers with the key code! JavaFX 2.0 contains a handy little class called KeyCombination which will handle all the annoying checking of key modifiers + key code to see if a specific key event matches. Here is the more correct version:

Today i was fighting with a text area but without sucess. I need use a text area like a console. when a message comes (jms in the case), I need to update the text area with the message content. But the text area is only update on the method end. Do you have any clue of how i can do this?